From 0c885d68189c4548dea3a833cb411c076799459c Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 27 Aug 2014 00:17:21 +0900 Subject: [PATCH] Reset RACK_ENV after modified in a test case --- railties/test/commands/dbconsole_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/railties/test/commands/dbconsole_test.rb b/railties/test/commands/dbconsole_test.rb index ede08e7b86..214c7aa313 100644 --- a/railties/test/commands/dbconsole_test.rb +++ b/railties/test/commands/dbconsole_test.rb @@ -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