diff options
author | Vicente Mundim <vicente.mundim@intelitiva.com> | 2009-06-27 12:40:55 +1200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-06-27 12:43:57 +1200 |
commit | 68b02cb00aae4f4ee1b2b9b1eadb6951b747c181 (patch) | |
tree | 83b305c97fd05da036cbefa31abb41850944dba9 /actionpack/test/controller | |
parent | 188a892c5a097ee6d62249d048a6be7d2dfe9649 (diff) | |
download | rails-68b02cb00aae4f4ee1b2b9b1eadb6951b747c181.tar.gz rails-68b02cb00aae4f4ee1b2b9b1eadb6951b747c181.tar.bz2 rails-68b02cb00aae4f4ee1b2b9b1eadb6951b747c181.zip |
Make filter_parameters work correctly with array parameters.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/filter_params_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/controller/filter_params_test.rb b/actionpack/test/controller/filter_params_test.rb index 8c9e4f81de..f7864745eb 100644 --- a/actionpack/test/controller/filter_params_test.rb +++ b/actionpack/test/controller/filter_params_test.rb @@ -40,7 +40,8 @@ class FilterParamTest < ActionController::TestCase [{'foo'=>'bar', 'bar'=>'foo'},{'foo'=>'[FILTERED]', 'bar'=>'foo'},%w'foo baz'], [{'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']] + [{'foo'=>{'foo'=>'bar','bar'=>'foo'}},{'foo'=>'[FILTERED]'},%w'f banana'], + [{'baz'=>[{'foo'=>'baz'}]}, {'baz'=>[{'foo'=>'[FILTERED]'}]}, %w(foo)]] test_hashes.each do |before_filter, after_filter, filter_words| FilterParamController.filter_parameter_logging(*filter_words) |