diff options
Diffstat (limited to 'activerecord/test/cases/validations_test.rb')
-rw-r--r-- | activerecord/test/cases/validations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb index 3a34df2426..2a5e683f96 100644 --- a/activerecord/test/cases/validations_test.rb +++ b/activerecord/test/cases/validations_test.rb @@ -65,7 +65,7 @@ class ValidationsTest < ActiveRecord::TestCase def test_error_on_given_context r = WrongReply.new assert !r.valid?(:special_case) - assert "Invalid", r.errors[:title].join + assert_equal "Invalid", r.errors[:title].join r.title = "secret" r.content = "Good" @@ -73,7 +73,7 @@ class ValidationsTest < ActiveRecord::TestCase r.title = nil assert !r.save(:context => :special_case) - assert "Invalid", r.errors[:title].join + assert_equal "Invalid", r.errors[:title].join r.title = "secret" assert r.save(:context => :special_case) |