aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-09-19 13:46:01 +1200
committerPhilip Arndt <parndt@gmail.com>2012-09-19 13:46:01 +1200
commit45d6944afa5ec410535f6d36c4354d215b4090c3 (patch)
treee3744416643281e1ef6a9b230518918a64907855 /actionpack/test
parentfb0c845e92acfec771d9b6aca92585a957a5611f (diff)
downloadrails-45d6944afa5ec410535f6d36c4354d215b4090c3.tar.gz
rails-45d6944afa5ec410535f6d36c4354d215b4090c3.tar.bz2
rails-45d6944afa5ec410535f6d36c4354d215b4090c3.zip
Correct parameter access.
* The params as supplied pass born in authors[0] but not authors[1] so it seems like the test isn't covering what it should be covering.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/parameters/nested_parameters_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/parameters/nested_parameters_test.rb b/actionpack/test/controller/parameters/nested_parameters_test.rb
index ea67126cc5..41f5b6e127 100644
--- a/actionpack/test/controller/parameters/nested_parameters_test.rb
+++ b/actionpack/test/controller/parameters/nested_parameters_test.rb
@@ -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