diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-04-25 13:41:30 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-04-25 13:41:30 -0500 |
commit | 044794fc9e1235981d20172b96f3b34b044ad19c (patch) | |
tree | de3b2157cc3691d5390708b2e7724fe01875ceab /actionpack/lib/action_dispatch/middleware | |
parent | dd2ed32418a74ca9126834f98a1b0bca926c0c4f (diff) | |
download | rails-044794fc9e1235981d20172b96f3b34b044ad19c.tar.gz rails-044794fc9e1235981d20172b96f3b34b044ad19c.tar.bz2 rails-044794fc9e1235981d20172b96f3b34b044ad19c.zip |
Remove pending rack specifications until they are official
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/failsafe.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/failsafe.rb b/actionpack/lib/action_dispatch/middleware/failsafe.rb index 7379a696aa..b5a3abcc92 100644 --- a/actionpack/lib/action_dispatch/middleware/failsafe.rb +++ b/actionpack/lib/action_dispatch/middleware/failsafe.rb @@ -11,7 +11,7 @@ module ActionDispatch @app.call(env) rescue Exception => exception # Reraise exception in test environment - if env["rack.test"] + if defined?(Rails) && Rails.test? raise exception else failsafe_response(exception) |