From 7433836f9a49acfce95be58606c5855fc5613802 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 8 Feb 2016 05:43:57 +0900 Subject: Remove `const_missing` which fallback to deprecated `NEVER_UNPERMITTED_PARAMS` `NEVER_UNPERMITTED_PARAMS` is deprecated in Rails 4.2. See #15933. --- .../test/controller/parameters/always_permitted_parameters_test.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'actionpack/test/controller') 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 -- cgit v1.2.3