mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add regression test to #12343
This commit is contained in:
parent
1e810024f7
commit
43d600ee20
1 changed files with 5 additions and 0 deletions
|
@ -61,4 +61,9 @@ class ForbiddenAttributesProtectionTest < ActiveRecord::TestCase
|
|||
assert_equal 'Guille', person.first_name
|
||||
assert_equal 'm', person.gender
|
||||
end
|
||||
|
||||
def test_blank_attributes_should_not_raise
|
||||
person = Person.new
|
||||
assert_nil person.assign_attributes(ProtectedParams.new({}))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue