Skip to content

Commit

Permalink
Fix environment variable testing code in failsafe.rb.
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
FooBarWidget authored and josh committed Apr 26, 2009
1 parent cd9bb88 commit 3cb97ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/middleware/failsafe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def call(env)
@app.call(env)
rescue Exception => exception
# Reraise exception in test environment
if defined?(Rails) && Rails.test?
if defined?(Rails) && Rails.env.test?
raise exception
else
failsafe_response(exception)
Expand Down

0 comments on commit 3cb97ae

Please sign in to comment.