From 1a0f14e0453d3a36f134989752721292aed54892 Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Tue, 6 Nov 2012 21:24:14 +0100 Subject: Test that not permitted is sticky on #except --- actionpack/test/controller/parameters/parameters_permit_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/test') 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" } -- cgit v1.2.3