提交 108a407b 编写于 作者: M Matthew Draper 提交者: GitHub

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

Remove duplicate test and fix a typo in the test
......@@ -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
......
......@@ -245,11 +245,6 @@ def walk_permitted params
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?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册