diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-02 20:54:10 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-02 20:54:10 +0200 |
commit | 997e22c2751c66f8bba31dcdf4d1054072156036 (patch) | |
tree | b25eb730b629b1ac4b1b6cc24dacabd9c5f913f2 /railties/test/application | |
parent | d898a4ba425a201827f07a5bb11c8c6bf85159b8 (diff) | |
download | rails-997e22c2751c66f8bba31dcdf4d1054072156036.tar.gz rails-997e22c2751c66f8bba31dcdf4d1054072156036.tar.bz2 rails-997e22c2751c66f8bba31dcdf4d1054072156036.zip |
Add a test which ensures action_dispatch.show_exceptions is properly disabled.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/middleware_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index 9a359d20b1..7f72881d55 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -52,6 +52,12 @@ module ApplicationTests assert !middleware.include?("ActionDispatch::Static") end + test "removes show exceptions if action_dispatch.show_exceptions is disabled" do + add_to_config "config.action_dispatch.show_exceptions = false" + boot! + assert !middleware.include?("ActionDispatch::ShowExceptions") + end + test "use middleware" do use_frameworks [] add_to_config "config.middleware.use Rack::Config" |