mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix environment variable testing code in failsafe.rb.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
parent
cd9bb88eef
commit
3cb97aeea8
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ module ActionDispatch
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
rescue Exception => exception
|
rescue Exception => exception
|
||||||
# Reraise exception in test environment
|
# Reraise exception in test environment
|
||||||
if defined?(Rails) && Rails.test?
|
if defined?(Rails) && Rails.env.test?
|
||||||
raise exception
|
raise exception
|
||||||
else
|
else
|
||||||
failsafe_response(exception)
|
failsafe_response(exception)
|
||||||
|
|
Loading…
Reference in a new issue