Skip to content

Commit

Permalink
Merge pull request #25792 from prathamesh-sonpatki/test-typo
Browse files Browse the repository at this point in the history
Remove duplicate test and fix a typo in the test
  • Loading branch information
matthewd authored Jul 12, 2016
2 parents e6352db + 3e43edd commit 108a407
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion actionpack/test/controller/parameters/dup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 108a407

Please sign in to comment.