diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-21 14:40:48 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-21 14:40:48 +0100 |
commit | a7b78e86b3b78cf4f461cd372d914ff3a6295c1b (patch) | |
tree | 06aa99b7ed188ac5ed0903ade466ecd9add78f6c /actionpack | |
parent | 55ae903c3fd2965f85a6e2e45ddd6b5b1156be91 (diff) | |
download | rails-a7b78e86b3b78cf4f461cd372d914ff3a6295c1b.tar.gz rails-a7b78e86b3b78cf4f461cd372d914ff3a6295c1b.tar.bz2 rails-a7b78e86b3b78cf4f461cd372d914ff3a6295c1b.zip |
Add a tests which ensures filtered_parameters does not raise an error for a mixed array [#3928 status:resolved]
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/request_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb index 2b5c19361a..cc6acead6e 100644 --- a/actionpack/test/dispatch/request_test.rb +++ b/actionpack/test/dispatch/request_test.rb @@ -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) |