Permalink
Browse files

Merge pull request #28378 from y-yagi/use_correct_variable_in_reverse…

…_merge_test

Use correct value in `reverse_merge` test
  • Loading branch information...
eileencodes committed Mar 11, 2017
2 parents 158a01e + 6568da3 commit c186bf6b44af5021d59252b01e939efa1f4fe366
Showing with 4 additions and 8 deletions.
  1. +4 −8 actionpack/test/controller/parameters/parameters_permit_test.rb
@@ -310,17 +310,13 @@ def walk_permitted(params)
refute_predicate merged_params[:person], :empty?
end
test "not permitted is sticky beyond reverse_merge!" do
merged_params = @params.reverse_merge(a: "b")
refute_predicate @params, :permitted?
test "not permitted is sticky beyond reverse_merge" do
refute_predicate @params.reverse_merge(a: "b"), :permitted?
end
test "permitted is sticky beyond reverse_merge!" do
test "permitted is sticky beyond reverse_merge" do
@params.permit!
merged_params = @params.reverse_merge(a: "b")
assert_predicate @params, :permitted?
assert_predicate @params.reverse_merge(a: "b"), :permitted?
end
test "#reverse_merge! with parameters" do

0 comments on commit c186bf6

Please sign in to comment.