mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix mismatched assertions.
This commit is contained in:
parent
5e3517ea7b
commit
923eb9569c
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class AssertDifferenceTest < Test::Unit::TestCase
|
|||
end
|
||||
fail 'should not get to here'
|
||||
rescue Test::Unit::AssertionFailedError => e
|
||||
assert_equal "<1 + 1> was expression that failed.\n<3> expected but was\n<2>.", e.message
|
||||
assert_equal "<1 + 1> was the expression that failed.\n<3> expected but was\n<2>.", e.message
|
||||
end
|
||||
|
||||
def test_array_of_expressions_identify_failure_when_message_provided
|
||||
|
@ -76,7 +76,7 @@ class AssertDifferenceTest < Test::Unit::TestCase
|
|||
end
|
||||
fail 'should not get to here'
|
||||
rescue Test::Unit::AssertionFailedError => e
|
||||
assert_equal "something went wrong.\n<1 + 1> was expression that failed.\n<3> expected but was\n<2>.", e.message
|
||||
assert_equal "something went wrong.\n<1 + 1> was the expression that failed.\n<3> expected but was\n<2>.", e.message
|
||||
end
|
||||
else
|
||||
def default_test; end
|
||||
|
|
Loading…
Reference in a new issue