diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-07 00:45:56 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-07 01:42:51 +0200 |
commit | eb063538bd58c915c953e4b8a295d3a1b1a321d5 (patch) | |
tree | 8188f4ba64f637f6083dc3a4dc68b6aae804eb97 /actionpack/test | |
parent | 4c4fd1a60ff1c060e76e9ee540074756510f53ea (diff) | |
download | rails-eb063538bd58c915c953e4b8a295d3a1b1a321d5.tar.gz rails-eb063538bd58c915c953e4b8a295d3a1b1a321d5.tar.bz2 rails-eb063538bd58c915c953e4b8a295d3a1b1a321d5.zip |
Use config.filter_parameters on in-browser request dump. [#4335 state:resolved]
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/show_exceptions_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/show_exceptions_test.rb b/actionpack/test/dispatch/show_exceptions_test.rb index 97da680f17..b447b0715c 100644 --- a/actionpack/test/dispatch/show_exceptions_test.rb +++ b/actionpack/test/dispatch/show_exceptions_test.rb @@ -106,4 +106,13 @@ class ShowExceptionsTest < ActionController::IntegrationTest assert_response 405 assert_match /ActionController::MethodNotAllowed/, body end + + test "does not show filtered parameters" do + @app = DevelopmentApp + + get "/", {"foo"=>"bar"}, {'action_dispatch.show_exceptions' => true, + 'action_dispatch.parameter_filter' => [:foo]} + assert_response 500 + assert_match ""foo"=>"[FILTERED]"", body + end end |