diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-23 14:54:33 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-23 14:54:33 -0700 |
commit | 8c83bd0732fc526e69cd5c348cb9d9842ae60c99 (patch) | |
tree | 856a528211a5fd4ec579ac6b9ee830b87654f8f3 /activerecord/test/cases/nested_attributes_test.rb | |
parent | 7c6f3938dee47f0932c2a1d4924adaebc25517ac (diff) | |
parent | a225d4bec51778d99ccba5f0d6700dd00d2474f4 (diff) | |
download | rails-8c83bd0732fc526e69cd5c348cb9d9842ae60c99.tar.gz rails-8c83bd0732fc526e69cd5c348cb9d9842ae60c99.tar.bz2 rails-8c83bd0732fc526e69cd5c348cb9d9842ae60c99.zip |
Merge pull request #10776 from bogdan/assign-attributes
Extracted attributes assingment from ActiveRecord to ActiveModel
Diffstat (limited to 'activerecord/test/cases/nested_attributes_test.rb')
-rw-r--r-- | activerecord/test/cases/nested_attributes_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb index 5c7e8a65d2..8bc42b8890 100644 --- a/activerecord/test/cases/nested_attributes_test.rb +++ b/activerecord/test/cases/nested_attributes_test.rb @@ -672,7 +672,7 @@ module NestedAttributesOnACollectionAssociationTests end def test_should_not_assign_destroy_key_to_a_record - assert_nothing_raised ActiveRecord::UnknownAttributeError do + assert_nothing_raised ActiveModel::AttributeAssignment::UnknownAttributeError do @pirate.send(association_setter, { 'foo' => { '_destroy' => '0' }}) end end |