aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorBenjamin Quorning <bquorning@zendesk.com>2012-11-06 21:23:24 +0100
committerBenjamin Quorning <bquorning@zendesk.com>2012-11-06 21:23:24 +0100
commit93eaffe59b713e94424212540a8788f0b273f8eb (patch)
treeb043bcb1b3ec22447974dd481c6f4f9ce2abd0a0 /actionpack/test/controller
parent5b3b9b0ebcbe35038adaf7b1636032e6f436ed1c (diff)
downloadrails-93eaffe59b713e94424212540a8788f0b273f8eb.tar.gz
rails-93eaffe59b713e94424212540a8788f0b273f8eb.tar.bz2
rails-93eaffe59b713e94424212540a8788f0b273f8eb.zip
Current tests are testing stickiness of non-permitted parameters
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/parameters/parameters_permit_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/parameters/parameters_permit_test.rb b/actionpack/test/controller/parameters/parameters_permit_test.rb
index ec8fd4a40a..2a7ddff235 100644
--- a/actionpack/test/controller/parameters/parameters_permit_test.rb
+++ b/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