Fix some typo in method names, variables

This commit is contained in:
Vipul A M 2013-05-26 16:27:05 +05:30
parent 432ffdb073
commit d745d62616
4 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ class NumericExtTimeAndDateTimeTest < ActiveSupport::TestCase
assert_equal @dtnow.advance(:days => 1).advance(:months => 2), @dtnow + 1.day + 2.months
end
def test_duration_after_convertion_is_no_longer_accurate
def test_duration_after_conversion_is_no_longer_accurate
assert_equal 30.days.to_i.since(@now), 1.month.to_i.since(@now)
assert_equal 365.25.days.to_f.since(@now), 1.year.to_f.since(@now)
assert_equal 30.days.to_i.since(@dtnow), 1.month.to_i.since(@dtnow)

View File

@ -54,7 +54,7 @@ class RangeTest < ActiveSupport::TestCase
assert((1...10) === (1...10))
end
def test_should_compare_other_with_exlusive_end
def test_should_compare_other_with_exclusive_end
assert((1..10) === (1...10))
end

View File

@ -195,7 +195,7 @@ class TestJSONEncoding < ActiveSupport::TestCase
assert_nothing_raised do
hash = {
"CHI" => {
:dislay_name => "chicago",
:display_name => "chicago",
:latitude => 123.234
}
}

View File

@ -97,7 +97,7 @@ class RescuableTest < ActiveSupport::TestCase
assert_equal expected, result
end
def test_children_should_inherit_rescue_defintions_from_parents_and_child_rescue_should_be_appended
def test_children_should_inherit_rescue_definitions_from_parents_and_child_rescue_should_be_appended
expected = ["WraithAttack", "WraithAttack", "NuclearExplosion", "MadRonon", "CoolError"]
result = @cool_stargate.send(:rescue_handlers).collect {|e| e.first}
assert_equal expected, result