diff options
Diffstat (limited to 'actionpack/test/controller/parameters/accessors_test.rb')
-rw-r--r-- | actionpack/test/controller/parameters/accessors_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/parameters/accessors_test.rb b/actionpack/test/controller/parameters/accessors_test.rb index 5dd2c2c667..7b9b716a42 100644 --- a/actionpack/test/controller/parameters/accessors_test.rb +++ b/actionpack/test/controller/parameters/accessors_test.rb @@ -231,7 +231,7 @@ class ParametersAccessorsTest < ActiveSupport::TestCase test "transform_values without a block returns an enumerator" do assert_kind_of Enumerator, @params.transform_values - assert_kind_of ActionController::Parameters, @params.transform_values.each { |k| k } + assert_kind_of ActionController::Parameters, @params.transform_values.each { |v| v } end test "transform_values! converts hashes to parameters" do @@ -242,7 +242,7 @@ class ParametersAccessorsTest < ActiveSupport::TestCase test "transform_values! without a block returns an enumerator" do assert_kind_of Enumerator, @params.transform_values! - assert_kind_of ActionController::Parameters, @params.transform_values!.each { |k| k } + assert_kind_of ActionController::Parameters, @params.transform_values!.each { |v| v } end test "value? returns true if the given value is present in the params" do |