diff options
author | lest <just.lest@gmail.com> | 2011-11-28 19:25:37 +0300 |
---|---|---|
committer | lest <just.lest@gmail.com> | 2011-11-28 19:25:37 +0300 |
commit | fe7d4f09ef2296e45ab4a82c1556c63382856607 (patch) | |
tree | 63e0a5cccd09a08b25f4172d2b5a4361e4ef9712 /actionpack/test/dispatch | |
parent | 970caea5bc1105e69acf46bbf9a9e73024b61625 (diff) | |
download | rails-fe7d4f09ef2296e45ab4a82c1556c63382856607.tar.gz rails-fe7d4f09ef2296e45ab4a82c1556c63382856607.tar.bz2 rails-fe7d4f09ef2296e45ab4a82c1556c63382856607.zip |
put backtrace_cleaner to env
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/show_exceptions_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/show_exceptions_test.rb b/actionpack/test/dispatch/show_exceptions_test.rb index 5875725b5d..90f13a3bb9 100644 --- a/actionpack/test/dispatch/show_exceptions_test.rb +++ b/actionpack/test/dispatch/show_exceptions_test.rb @@ -135,4 +135,11 @@ class ShowExceptionsTest < ActionDispatch::IntegrationTest get "/", {}, {'action_dispatch.show_exceptions' => true, 'action_dispatch.logger' => Logger.new(output)} assert_match(/puke/, output.rewind && output.read) end + + test 'uses backtrace cleaner from env' do + @app = DevelopmentApp + cleaner = stub(:clean => ['passed backtrace cleaner']) + get "/", {}, {'action_dispatch.show_exceptions' => true, 'action_dispatch.backtrace_cleaner' => cleaner} + assert_match(/passed backtrace cleaner/, body) + end end |