diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-05-19 23:22:45 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-21 16:00:49 +0200 |
commit | 1bc6b43f535d8b56cb6f25d36e7605d32cb0dd2e (patch) | |
tree | 875ab7bfa1203e68461fcedfc3df6b9a7c35b101 /activerecord/test | |
parent | 048cf9e922379436f577ade30276f9c0c033ea83 (diff) | |
download | rails-1bc6b43f535d8b56cb6f25d36e7605d32cb0dd2e.tar.gz rails-1bc6b43f535d8b56cb6f25d36e7605d32cb0dd2e.tar.bz2 rails-1bc6b43f535d8b56cb6f25d36e7605d32cb0dd2e.zip |
Replace assert with assert_equal in some test cases
[#4654 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test')
-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) |