diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-01 20:46:18 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-01 20:46:18 +0100 |
commit | 750bb5c865ac9234da91ec451eec7d9de55b8f9b (patch) | |
tree | 16873e2a42d812f637cde622ab933e1e7667f10c /actionpack/test/abstract_unit.rb | |
parent | 956ecff8337908d7c3908977a5c8e12296a5b576 (diff) | |
download | rails-750bb5c865ac9234da91ec451eec7d9de55b8f9b.tar.gz rails-750bb5c865ac9234da91ec451eec7d9de55b8f9b.tar.bz2 rails-750bb5c865ac9234da91ec451eec7d9de55b8f9b.zip |
Split ShowExceptions responsibilities in two middlewares.
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index d191a203dd..c95b8221a1 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -175,6 +175,7 @@ class ActionDispatch::IntegrationTest < ActiveSupport::TestCase def self.build_app(routes = nil) RoutedRackApp.new(routes || ActionDispatch::Routing::RouteSet.new) do |middleware| middleware.use "ActionDispatch::ShowExceptions" + middleware.use "ActionDispatch::DebugExceptions" middleware.use "ActionDispatch::Callbacks" middleware.use "ActionDispatch::ParamsParser" middleware.use "ActionDispatch::Cookies" @@ -338,16 +339,19 @@ end module ActionDispatch class ShowExceptions private - remove_method :public_path - def public_path - "#{FIXTURE_LOAD_PATH}/public" - end + remove_method :public_path + def public_path + "#{FIXTURE_LOAD_PATH}/public" + end + end - remove_method :stderr_logger - # Silence logger - def stderr_logger - nil - end + class DebugExceptions + private + remove_method :stderr_logger + # Silence logger + def stderr_logger + nil + end end end |