aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-02-08 05:43:57 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-02-15 04:17:24 +0900
commit7433836f9a49acfce95be58606c5855fc5613802 (patch)
tree44eef7a6d97a039c370eed857d7236ca0457f0bc /actionpack/test
parent3c96a6eaa42873147d4be4c753981b7e99a2ba4f (diff)
downloadrails-7433836f9a49acfce95be58606c5855fc5613802.tar.gz
rails-7433836f9a49acfce95be58606c5855fc5613802.tar.bz2
rails-7433836f9a49acfce95be58606c5855fc5613802.zip
Remove `const_missing` which fallback to deprecated `NEVER_UNPERMITTED_PARAMS`
`NEVER_UNPERMITTED_PARAMS` is deprecated in Rails 4.2. See #15933.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/parameters/always_permitted_parameters_test.rb6
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