aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorBenjamin Quorning <bquorning@zendesk.com>2012-11-06 21:24:14 +0100
committerBenjamin Quorning <bquorning@zendesk.com>2012-11-06 21:24:14 +0100
commit1a0f14e0453d3a36f134989752721292aed54892 (patch)
tree82fc50bc9cbb8da73067632451bd582c74c1414e /actionpack/test
parent93eaffe59b713e94424212540a8788f0b273f8eb (diff)
downloadrails-1a0f14e0453d3a36f134989752721292aed54892.tar.gz
rails-1a0f14e0453d3a36f134989752721292aed54892.tar.bz2
rails-1a0f14e0453d3a36f134989752721292aed54892.zip
Test that not permitted is sticky on #except
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/parameters/parameters_permit_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/controller/parameters/parameters_permit_test.rb b/actionpack/test/controller/parameters/parameters_permit_test.rb
index 2a7ddff235..79ce7bb3a7 100644
--- a/actionpack/test/controller/parameters/parameters_permit_test.rb
+++ b/actionpack/test/controller/parameters/parameters_permit_test.rb
@@ -23,6 +23,7 @@ class ParametersPermitTest < ActiveSupport::TestCase
test "not permitted is sticky on accessors" do
assert !@params.slice(:person).permitted?
assert !@params[:person][:name].permitted?
+ assert !@params[:person].except(:name).permitted?
@params.each { |key, value| assert(!value.permitted?) if key == "person" }