aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/commands
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2014-08-27 00:17:21 +0900
committerAkira Matsuda <ronnie@dio.jp>2014-08-28 14:41:00 +0900
commit0c885d68189c4548dea3a833cb411c076799459c (patch)
tree52bb8ff77a1eba59b8c8e35b98c92d5eefd7bac3 /railties/test/commands
parent357edaaf8309e5ebfd1b5bae7b7210cacc501c7b (diff)
downloadrails-0c885d68189c4548dea3a833cb411c076799459c.tar.gz
rails-0c885d68189c4548dea3a833cb411c076799459c.tar.bz2
rails-0c885d68189c4548dea3a833cb411c076799459c.zip
Reset RACK_ENV after modified in a test case
Diffstat (limited to 'railties/test/commands')
-rw-r--r--railties/test/commands/dbconsole_test.rb1
1 files changed, 1 insertions, 0 deletions
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