diff options
author | schneems <richard.schneeman@gmail.com> | 2016-01-19 11:45:34 -0600 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2016-01-19 12:05:44 -0600 |
commit | 66d705b3e7c03f806f7481e0e6a1f157dcf86f83 (patch) | |
tree | eb9ebf1e2adb8d59f657116bf2c298185cad936a /actionpack/test | |
parent | 3ea4476942d2ba5ddc0d3b2d1f3730455661b06a (diff) | |
download | rails-66d705b3e7c03f806f7481e0e6a1f157dcf86f83.tar.gz rails-66d705b3e7c03f806f7481e0e6a1f157dcf86f83.tar.bz2 rails-66d705b3e7c03f806f7481e0e6a1f157dcf86f83.zip |
[close #23084] Deprecated StrongParameters
We can provide a more flexible upgrade experience by warning users they are using unsafe methods instead of forcing the safe API by deprecating before removal. This PR provides this functionality.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/required_params_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/required_params_test.rb b/actionpack/test/controller/required_params_test.rb index 168f64ce41..129a713564 100644 --- a/actionpack/test/controller/required_params_test.rb +++ b/actionpack/test/controller/required_params_test.rb @@ -65,4 +65,10 @@ class ParametersRequireTest < ActiveSupport::TestCase .require([:first_name, :title]) end end + + test "Deprecated method are deprecated" do + assert_deprecated do + ActionController::Parameters.new(foo: "bar").merge!({bar: "foo"}) + end + end end |