1
0
Fork 0
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:
Rafael Mendonça França 2017-04-11 20:02:51 -04:00
parent 48c5139ae3
commit 1396b05e5a
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948

View file

@ -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