1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Reset RACK_ENV after modified in a test case

This commit is contained in:
Akira Matsuda 2014-08-27 00:17:21 +09:00
parent 357edaaf83
commit 0c885d6818

View file

@ -95,6 +95,7 @@ class Rails::DBConsoleTest < ActiveSupport::TestCase
end
ensure
ENV['RAILS_ENV'] = "test"
ENV['RACK_ENV'] = nil
end
def test_rails_env_is_development_when_argument_is_dev