diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-05 06:38:27 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-05 06:39:51 -0300 |
commit | 1401f96492d7fc7ea0688c1d4b7f0232d2f34eb6 (patch) | |
tree | fcbbe9e8acabbaca38e866c5c9eb8a36a2479624 /actionpack/test/controller | |
parent | 58f52677e8f1ea37b91a6c5d9028f93b1a36ea54 (diff) | |
download | rails-1401f96492d7fc7ea0688c1d4b7f0232d2f34eb6.tar.gz rails-1401f96492d7fc7ea0688c1d4b7f0232d2f34eb6.tar.bz2 rails-1401f96492d7fc7ea0688c1d4b7f0232d2f34eb6.zip |
Rename the configuration to raise_on_unpermitted_parameters
Also changed the exception to UnpermittedParameters
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb (renamed from actionpack/test/controller/parameters/raise_on_unpermitted_params_test.rb) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/controller/parameters/raise_on_unpermitted_params_test.rb b/actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb index 51bbc9c1b1..98a8280331 100644 --- a/actionpack/test/controller/parameters/raise_on_unpermitted_params_test.rb +++ b/actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb @@ -1,13 +1,13 @@ require 'abstract_unit' require 'action_controller/metal/strong_parameters' -class RaiseOnUnpermittedParamsTest < ActiveSupport::TestCase +class RaiseOnUnpermittedParametersTest < ActiveSupport::TestCase def setup - ActionController::Parameters.raise_on_unexpected = true + ActionController::Parameters.raise_on_unpermitted_parameters = true end def teardown - ActionController::Parameters.raise_on_unexpected = false + ActionController::Parameters.raise_on_unpermitted_parameters = false end test "raises on unexpected params" do @@ -30,4 +30,4 @@ class RaiseOnUnpermittedParamsTest < ActiveSupport::TestCase params.permit(book: [:pages]) end end -end
\ No newline at end of file +end |