diff options
author | Eileen M. Uchitelle <eileencodes@gmail.com> | 2016-02-14 16:21:34 -0500 |
---|---|---|
committer | Eileen M. Uchitelle <eileencodes@gmail.com> | 2016-02-14 16:21:34 -0500 |
commit | f432e129a7e70a96f4c0d55fa7152fc010e9ca5d (patch) | |
tree | 44eef7a6d97a039c370eed857d7236ca0457f0bc /actionpack/test/controller | |
parent | 3c96a6eaa42873147d4be4c753981b7e99a2ba4f (diff) | |
parent | 7433836f9a49acfce95be58606c5855fc5613802 (diff) | |
download | rails-f432e129a7e70a96f4c0d55fa7152fc010e9ca5d.tar.gz rails-f432e129a7e70a96f4c0d55fa7152fc010e9ca5d.tar.bz2 rails-f432e129a7e70a96f4c0d55fa7152fc010e9ca5d.zip |
Merge pull request #23678 from kamipo/remove_deprecated_never_unpermitted_params
Remove `const_missing` which fallback to deprecated `NEVER_UNPERMITTED_PARAMS`
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/parameters/always_permitted_parameters_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/test/controller/parameters/always_permitted_parameters_test.rb b/actionpack/test/controller/parameters/always_permitted_parameters_test.rb index efaf8a96c3..c5bfb10b53 100644 --- a/actionpack/test/controller/parameters/always_permitted_parameters_test.rb +++ b/actionpack/test/controller/parameters/always_permitted_parameters_test.rb @@ -12,12 +12,6 @@ class AlwaysPermittedParametersTest < ActiveSupport::TestCase ActionController::Parameters.always_permitted_parameters = %w( controller action ) end - test "shows deprecations warning on NEVER_UNPERMITTED_PARAMS" do - assert_deprecated do - ActionController::Parameters::NEVER_UNPERMITTED_PARAMS - end - end - test "returns super on missing constant other than NEVER_UNPERMITTED_PARAMS" do ActionController::Parameters.superclass.stub :const_missing, "super" do assert_equal "super", ActionController::Parameters::NON_EXISTING_CONSTANT |