1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #7693 from parndt/patch-6

Correct parameter access.
This commit is contained in:
Rafael Mendonça França 2012-09-18 18:53:25 -07:00
commit 2dff5dc5cb

View file

@ -28,7 +28,7 @@ class NestedParametersTest < ActiveSupport::TestCase
assert_equal "Christopher Marlowe", permitted[:book][:authors][1][:name]
assert_equal 200, permitted[:book][:details][:pages]
assert_nil permitted[:book][:details][:genre]
assert_nil permitted[:book][:authors][1][:born]
assert_nil permitted[:book][:authors][0][:born]
assert_nil permitted[:magazine]
end