diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-27 00:17:21 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-28 14:41:00 +0900 |
commit | 0c885d68189c4548dea3a833cb411c076799459c (patch) | |
tree | 52bb8ff77a1eba59b8c8e35b98c92d5eefd7bac3 /railties/test/commands | |
parent | 357edaaf8309e5ebfd1b5bae7b7210cacc501c7b (diff) | |
download | rails-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.rb | 1 |
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 |