mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Test the correct object
This commit is contained in:
parent
48c5139ae3
commit
1396b05e5a
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ class ParametersPermitTest < ActiveSupport::TestCase
|
|||
params = ActionController::Parameters.new(crab: "Senjougahara Hitagi")
|
||||
|
||||
assert params.to_h.is_a? ActiveSupport::HashWithIndifferentAccess
|
||||
assert_not @params.to_h.is_a? ActionController::Parameters
|
||||
assert_not params.to_h.is_a? ActionController::Parameters
|
||||
assert_equal({ "crab" => "Senjougahara Hitagi" }, params.to_h)
|
||||
ensure
|
||||
ActionController::Parameters.permit_all_parameters = false
|
||||
|
|
Loading…
Reference in a new issue