Skip to content

Commit

Permalink
Add a tests which ensures filtered_parameters does not raise an error…
Browse files Browse the repository at this point in the history
… for a mixed array [#3928 status:resolved]
  • Loading branch information
josevalim committed Feb 21, 2010
1 parent 55ae903 commit a7b78e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/test/dispatch/request_test.rb
Expand Up @@ -462,7 +462,7 @@ def teardown
[{'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)
Expand Down

0 comments on commit a7b78e8

Please sign in to comment.