diff options
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/abstract_unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb index 382bd72f20..4635c645d0 100644 --- a/actionview/test/abstract_unit.rb +++ b/actionview/test/abstract_unit.rb @@ -28,7 +28,7 @@ require 'pp' # require 'pp' early to prevent hidden_methods from not picking up module Rails class << self def env - @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || "test") + @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "test") end end end |