Merge pull request #25792 from prathamesh-sonpatki/test-typo

Remove duplicate test and fix a typo in the test
This commit is contained in:
Matthew Draper 2016-07-12 11:09:17 +09:30 committed by GitHub
commit 108a407b7d
2 changed files with 1 additions and 6 deletions

View File

@ -35,7 +35,7 @@ class ParametersDupTest < ActiveSupport::TestCase
assert_not_equal @params, dupped_params
end
test "changes tp a duplicate's permitted status do not affect the original" do
test "changes to a duplicate's permitted status do not affect the original" do
dupped_params = @params.dup
dupped_params.permit!
assert_not_equal @params, dupped_params

View File

@ -245,11 +245,6 @@ class ParametersPermitTest < ActiveSupport::TestCase
assert_equal "Jonas", @params[:person][:family][:brother]
end
test "permit state is kept on a dup" do
@params.permit!
assert_equal @params.permitted?, @params.dup.permitted?
end
test "permit is recursive" do
@params.permit!
assert @params.permitted?