diff options
author | Jakub Kuźma <qoobaa@gmail.com> | 2011-12-21 15:28:24 +0100 |
---|---|---|
committer | Jakub Kuźma <qoobaa@gmail.com> | 2011-12-21 21:10:15 +0100 |
commit | 1ad0a5363bcf44da9ed51e30c5c47a83c3516c24 (patch) | |
tree | 1c1a9464c3e7f58e812c0cb1352f58d68fce4ae9 /activerecord/test/cases/nested_attributes_test.rb | |
parent | 618cb4429191290b957391c314a55b4d59f381f3 (diff) | |
download | rails-1ad0a5363bcf44da9ed51e30c5c47a83c3516c24.tar.gz rails-1ad0a5363bcf44da9ed51e30c5c47a83c3516c24.tar.bz2 rails-1ad0a5363bcf44da9ed51e30c5c47a83c3516c24.zip |
added failing tests for has_many, has_one and belongs_to associations with strict mass assignment sanitizer, fixed build_record to not merge creation_attributes, removed failing nested attributes tests (that feature was broken anyway) #4051
Diffstat (limited to 'activerecord/test/cases/nested_attributes_test.rb')
-rw-r--r-- | activerecord/test/cases/nested_attributes_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb index 2f28dd4767..2ae9cb4888 100644 --- a/activerecord/test/cases/nested_attributes_test.rb +++ b/activerecord/test/cases/nested_attributes_test.rb @@ -617,11 +617,6 @@ module NestedAttributesOnACollectionAssociationTests assert_equal ['Grace OMalley', 'Privateers Greed'], [@child_1.name, @child_2.name] end - def test_should_take_a_hash_with_owner_attributes_and_assign_the_attributes_to_the_associated_model - @pirate.birds.create :name => 'bird', :pirate_attributes => {:id => @pirate.id.to_s, :catchphrase => 'Holla!'} - assert_equal 'Holla!', @pirate.reload.catchphrase - end - def test_should_raise_RecordNotFound_if_an_id_is_given_but_doesnt_return_a_record assert_raise_with_message ActiveRecord::RecordNotFound, "Couldn't find #{@child_1.class.name} with ID=1234567890 for Pirate with ID=#{@pirate.id}" do @pirate.attributes = { association_getter => [{ :id => 1234567890 }] } |