aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/forbidden_attributes_protection_test.rb
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2012-09-12 11:35:05 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2012-09-16 23:59:05 -0500
commit2d7ae1b08ee2a10b12cbfeef3a6cc6da55b57df6 (patch)
treeab1f52a552683df0ca320be0356bc73c4081c890 /activerecord/test/cases/forbidden_attributes_protection_test.rb
parent6ae93a0fdf457fb964149c976e7da734a548cec3 (diff)
downloadrails-2d7ae1b08ee2a10b12cbfeef3a6cc6da55b57df6.tar.gz
rails-2d7ae1b08ee2a10b12cbfeef3a6cc6da55b57df6.tar.bz2
rails-2d7ae1b08ee2a10b12cbfeef3a6cc6da55b57df6.zip
Remove mass_assignment_options from ActiveRecord
Diffstat (limited to 'activerecord/test/cases/forbidden_attributes_protection_test.rb')
-rw-r--r--activerecord/test/cases/forbidden_attributes_protection_test.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/forbidden_attributes_protection_test.rb b/activerecord/test/cases/forbidden_attributes_protection_test.rb
index 4706eaec2b..9a2172f41e 100644
--- a/activerecord/test/cases/forbidden_attributes_protection_test.rb
+++ b/activerecord/test/cases/forbidden_attributes_protection_test.rb
@@ -46,14 +46,4 @@ class ForbiddenAttributesProtectionTest < ActiveRecord::TestCase
assert_equal 'Guille', person.first_name
assert_equal 'm', person.gender
end
-
- def test_protected_attributes_cannot_be_used_for_mass_assignment
- params = ProtectedParams.new(id: 1, first_name: 'Guille', gender: 'm')
- params.permit!
- person = Person.new(params)
-
- assert_equal 'Guille', person.first_name
- assert_equal 'm', person.gender
- assert_not_equal 1, person.id
- end
end