diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-12-30 20:54:46 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-12-30 20:54:46 +0530 |
commit | 07af4dfd0097959c7cf8ca0866e18f6d6cbdb5c6 (patch) | |
tree | 7eafdcc4031e63c959870cc1e9e2a9f22a924d08 | |
parent | 892658a3d266828bd30d20101cab67de1e889278 (diff) | |
download | rails-07af4dfd0097959c7cf8ca0866e18f6d6cbdb5c6.tar.gz rails-07af4dfd0097959c7cf8ca0866e18f6d6cbdb5c6.tar.bz2 rails-07af4dfd0097959c7cf8ca0866e18f6d6cbdb5c6.zip |
Fix test for AC::Parameters#to_unsafe_h
- Test should call `to_unsafe_h` instead of `to_h`
-rw-r--r-- | actionpack/test/controller/parameters/parameters_permit_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/parameters/parameters_permit_test.rb b/actionpack/test/controller/parameters/parameters_permit_test.rb index fb72fca789..598cac5156 100644 --- a/actionpack/test/controller/parameters/parameters_permit_test.rb +++ b/actionpack/test/controller/parameters/parameters_permit_test.rb @@ -294,8 +294,8 @@ class ParametersPermitTest < ActiveSupport::TestCase end test "to_unsafe_h returns unfiltered params" do - assert @params.to_h.is_a? ActiveSupport::HashWithIndifferentAccess - assert_not @params.to_h.is_a? ActionController::Parameters + assert @params.to_unsafe_h.is_a? ActiveSupport::HashWithIndifferentAccess + assert_not @params.to_unsafe_h.is_a? ActionController::Parameters end test "to_h only deep dups Ruby collections" do |