Permalink
Browse files

Test that not permitted is sticky on #except

  • Loading branch information...
1 parent 93eaffe commit 1a0f14e0453d3a36f134989752721292aed54892 @bquorning bquorning committed Nov 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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" }

0 comments on commit 1a0f14e

Please sign in to comment.