1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Test that not permitted is sticky on #except

This commit is contained in:
Benjamin Quorning 2012-11-06 21:24:14 +01:00
parent 93eaffe59b
commit 1a0f14e045

View file

@ -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" }