diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-20 17:36:22 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-20 17:36:22 +0000 |
commit | 37283a6aaec244cb484e24b3e9ff165e89eadd64 (patch) | |
tree | c7fc73588629c15546428ed1462b254f9e7948b2 /activerecord/test/cases/associations | |
parent | 4367f39dea7eedb1bf6e7f52b4522c695befe1da (diff) | |
download | rails-37283a6aaec244cb484e24b3e9ff165e89eadd64.tar.gz rails-37283a6aaec244cb484e24b3e9ff165e89eadd64.tar.bz2 rails-37283a6aaec244cb484e24b3e9ff165e89eadd64.zip |
Deprecate Error#on(attribute) in favour of Errors#[attribute]
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_one_associations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/has_one_associations_test.rb b/activerecord/test/cases/associations/has_one_associations_test.rb index 1ddb3f49bf..7140de77ea 100644 --- a/activerecord/test/cases/associations/has_one_associations_test.rb +++ b/activerecord/test/cases/associations/has_one_associations_test.rb @@ -183,7 +183,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase account = firm.build_account assert !account.save - assert_equal "can't be empty", account.errors.on("credit_limit") + assert_equal ["can't be empty"], account.errors["credit_limit"] end def test_build_association_twice_without_saving_affects_nothing @@ -219,7 +219,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase assert_equal account, firm.account assert !account.save assert_equal account, firm.account - assert_equal "can't be empty", account.errors.on("credit_limit") + assert_equal ["can't be empty"], account.errors["credit_limit"] end def test_create |