mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add a tests which ensures filtered_parameters does not raise an error for a mixed array [#3928 status:resolved]
This commit is contained in:
parent
55ae903c3f
commit
a7b78e86b3
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ class RequestTest < ActiveSupport::TestCase
|
|||
[{'foo'=>'bar', 'baz'=>'foo'},{'foo'=>'[FILTERED]', 'baz'=>'[FILTERED]'},%w'foo baz'],
|
||||
[{'bar'=>{'foo'=>'bar','bar'=>'foo'}},{'bar'=>{'foo'=>'[FILTERED]','bar'=>'foo'}},%w'fo'],
|
||||
[{'foo'=>{'foo'=>'bar','bar'=>'foo'}},{'foo'=>'[FILTERED]'},%w'f banana'],
|
||||
[{'baz'=>[{'foo'=>'baz'}]}, {'baz'=>[{'foo'=>'[FILTERED]'}]}, [/foo/]]]
|
||||
[{'baz'=>[{'foo'=>'baz'}, "1"]}, {'baz'=>[{'foo'=>'[FILTERED]'}, "1"]}, [/foo/]]]
|
||||
|
||||
test_hashes.each do |before_filter, after_filter, filter_words|
|
||||
request = stub_request('action_dispatch.parameter_filter' => filter_words)
|
||||
|
|
Loading…
Reference in a new issue