aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb b/actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb
index 98a8280331..747b8123ea 100644
--- a/actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb
+++ b/actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb
@@ -16,7 +16,7 @@ class RaiseOnUnpermittedParametersTest < ActiveSupport::TestCase
fishing: "Turnips"
})
- assert_raises(ActionController::UnexpectedParameters) do
+ assert_raises(ActionController::UnpermittedParameters) do
params.permit(book: [:pages])
end
end
@@ -26,7 +26,7 @@ class RaiseOnUnpermittedParametersTest < ActiveSupport::TestCase
book: { pages: 65, title: "Green Cats and where to find then." }
})
- assert_raises(ActionController::UnexpectedParameters) do
+ assert_raises(ActionController::UnpermittedParameters) do
params.permit(book: [:pages])
end
end