Skip to content

Commit

Permalink
Test that not permitted is sticky on #except
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Nov 6, 2012
1 parent 93eaffe commit 1a0f14e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down

0 comments on commit 1a0f14e

Please sign in to comment.