1
0
Fork 0
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:
Michael Koziarski 2008-10-04 21:10:14 +02:00
parent 5e3517ea7b
commit 923eb9569c

View file

@ -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