Skip to content
Browse files

Current tests are testing stickiness of non-permitted parameters

  • Loading branch information...
1 parent 5b3b9b0 commit 93eaffe59b713e94424212540a8788f0b273f8eb @bquorning bquorning committed Nov 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/test/controller/parameters/parameters_permit_test.rb
View
6 actionpack/test/controller/parameters/parameters_permit_test.rb
@@ -20,7 +20,7 @@ class ParametersPermitTest < ActiveSupport::TestCase
assert_equal "monkey", @params.fetch(:foo) { "monkey" }
end
- test "permitted is sticky on accessors" do
+ test "not permitted is sticky on accessors" do
assert !@params.slice(:person).permitted?
assert !@params[:person][:name].permitted?
@@ -31,12 +31,12 @@ class ParametersPermitTest < ActiveSupport::TestCase
assert !@params.values_at(:person).first.permitted?
end
- test "permitted is sticky on mutators" do
+ test "not permitted is sticky on mutators" do
assert !@params.delete_if { |k| k == "person" }.permitted?
assert !@params.keep_if { |k,v| k == "person" }.permitted?
end
- test "permitted is sticky beyond merges" do
+ test "not permitted is sticky beyond merges" do
assert !@params.merge(a: "b").permitted?
end

0 comments on commit 93eaffe

Please sign in to comment.
Something went wrong with that request. Please try again.