diff options
author | Nate Berkopec <nate.berkopec@gmail.com> | 2014-12-13 15:34:59 -0500 |
---|---|---|
committer | Nate Berkopec <nate.berkopec@gmail.com> | 2014-12-13 15:34:59 -0500 |
commit | d57d85a126b64a32ea0ea806555785dc17491069 (patch) | |
tree | 21ad20cee8312a3f8f00301a4fd13367bcddc361 /actionpack/test | |
parent | 4c2aaca4dfd01223f6190c45f6582867dd84d6b4 (diff) | |
download | rails-d57d85a126b64a32ea0ea806555785dc17491069.tar.gz rails-d57d85a126b64a32ea0ea806555785dc17491069.tar.bz2 rails-d57d85a126b64a32ea0ea806555785dc17491069.zip |
ParameterFilter shouldn't try to dup symbol keys
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/request_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb index 940ebc0224..beb9085abe 100644 --- a/actionpack/test/dispatch/request_test.rb +++ b/actionpack/test/dispatch/request_test.rb @@ -997,8 +997,8 @@ class RequestParameterFilter < BaseRequestTest } parameter_filter = ActionDispatch::Http::ParameterFilter.new(filter_words) - before_filter['barg'] = {'bargain'=>'gain', 'blah'=>'bar', 'bar'=>{'bargain'=>{'blah'=>'foo'}}} - after_filter['barg'] = {'bargain'=>'niag', 'blah'=>'[FILTERED]', 'bar'=>{'bargain'=>{'blah'=>'[FILTERED]'}}} + before_filter['barg'] = {:bargain=>'gain', 'blah'=>'bar', 'bar'=>{'bargain'=>{'blah'=>'foo'}}} + after_filter['barg'] = {:bargain=>'niag', 'blah'=>'[FILTERED]', 'bar'=>{'bargain'=>{'blah'=>'[FILTERED]'}}} assert_equal after_filter, parameter_filter.filter(before_filter) end |