diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2015-01-23 13:57:34 +0200 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2015-01-23 23:43:22 +0200 |
commit | 2606fb339797a99c50e531105fc92071cef3db01 (patch) | |
tree | 9de175ae320de5487adb4d32bb29c3894529805b /activerecord/test/cases/associations | |
parent | 139c232b075da940cdf1042dcaad4c3b514908c9 (diff) | |
download | rails-2606fb339797a99c50e531105fc92071cef3db01.tar.gz rails-2606fb339797a99c50e531105fc92071cef3db01.tar.bz2 rails-2606fb339797a99c50e531105fc92071cef3db01.zip |
Extracted `ActiveRecord::AttributeAssignment` to `ActiveModel::AttributesAssignment`
Allows to use it for any object as an includable module.
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_one_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_one_associations_test.rb b/activerecord/test/cases/associations/has_one_associations_test.rb index 9b6757e256..4df75adeb4 100644 --- a/activerecord/test/cases/associations/has_one_associations_test.rb +++ b/activerecord/test/cases/associations/has_one_associations_test.rb @@ -276,7 +276,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase def test_create_with_inexistent_foreign_key_failing firm = Firm.create(name: 'GlobalMegaCorp') - assert_raises(ActiveRecord::UnknownAttributeError) do + assert_raises(ActiveModel::AttributeAssignment::UnknownAttributeError) do firm.create_account_with_inexistent_foreign_key end end |