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:
parent
93eaffe59b
commit
1a0f14e045
1 changed files with 1 additions and 0 deletions
|
@ -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" }
|
||||
|
||||
|
|
Loading…
Reference in a new issue