aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2014-06-03 21:48:17 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2014-06-03 21:48:17 -0500
commit4818bb36ac1a2a98bc61839ba87a654a78faadbe (patch)
tree0608127b947cef90440275144509b9360e8f4ae0 /actionpack/test
parente4efa187f0e7e62dc99ca3028d47ef17833e6a35 (diff)
parente63be2769c039e4e9ada523a8497ce3206cc8a9b (diff)
downloadrails-4818bb36ac1a2a98bc61839ba87a654a78faadbe.tar.gz
rails-4818bb36ac1a2a98bc61839ba87a654a78faadbe.tar.bz2
rails-4818bb36ac1a2a98bc61839ba87a654a78faadbe.zip
Merge pull request #15498 from zenspider/fix_memory_leak
Convert StrongParameters cache to a hash. This fixes an unbounded memory leak
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/parameters/parameters_permit_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/parameters/parameters_permit_test.rb b/actionpack/test/controller/parameters/parameters_permit_test.rb
index 33a91d72d9..1856ecd42b 100644
--- a/actionpack/test/controller/parameters/parameters_permit_test.rb
+++ b/actionpack/test/controller/parameters/parameters_permit_test.rb
@@ -169,7 +169,7 @@ class ParametersPermitTest < ActiveSupport::TestCase
test 'arrays are converted at most once' do
params = ActionController::Parameters.new(foo: [{}])
- assert params[:foo].equal?(params[:foo])
+ assert_same params[:foo], params[:foo]
end
test "fetch doesnt raise ParameterMissing exception if there is a default" do