diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-02-25 15:14:43 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-02-26 15:40:03 +0100 |
commit | 95c2fc967987e5dffa89a32c81bca736c7ba964d (patch) | |
tree | fb9607d98d956beb4037b2575de1b529f94107a9 /activerecord/test/cases/associations | |
parent | 803ef74f9bbcbc71af12060157a996f7b65e24db (diff) | |
download | rails-95c2fc967987e5dffa89a32c81bca736c7ba964d.tar.gz rails-95c2fc967987e5dffa89a32c81bca736c7ba964d.tar.bz2 rails-95c2fc967987e5dffa89a32c81bca736c7ba964d.zip |
Follow-up to #10776
The name `ActiveModel::AttributeAssignment::UnknownAttributeError` is
too implementation specific so let's move the constant directly under
the ActiveModel namespace.
Also since this constant used to be under the ActiveRecord namespace, to
make the upgrade path easier, let's avoid raising the former constant
when we deal with this error on the Active Record side.
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 3b6a4038cd..7dc9266074 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(ActiveModel::AttributeAssignment::UnknownAttributeError) do + assert_raises(ActiveRecord::UnknownAttributeError) do firm.create_account_with_inexistent_foreign_key end end |