Permalink
Browse files

Fix environment variable testing code in failsafe.rb.

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent 5e57e2f commit 2633108e1feba908f41f64b58afa1532e89cbd30 @FooBarWidget FooBarWidget committed with josh Apr 26, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/failsafe.rb
@@ -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)

0 comments on commit 2633108

Please sign in to comment.