diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-09 15:11:55 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-09 15:11:55 +0000 |
commit | 5c48a89a7f6f42391522a9ddaacee52a1843db5f (patch) | |
tree | a69805bbf1b082b73e21181a145d2360d653b0fd /railties/environments | |
parent | 6422f8b4633b773733ff0f2c4785979e4c515552 (diff) | |
download | rails-5c48a89a7f6f42391522a9ddaacee52a1843db5f.tar.gz rails-5c48a89a7f6f42391522a9ddaacee52a1843db5f.tar.bz2 rails-5c48a89a7f6f42391522a9ddaacee52a1843db5f.zip |
Force RAILS_ENV to be "test" when running tests, so that ENV["RAILS_ENV"] = "production" in config/environment.rb doesnt wreck havok [DHH] (closes #2660)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2955 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-rw-r--r-- | railties/environments/environment.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb index a8dfe25074..dee175ce39 100644 --- a/railties/environments/environment.rb +++ b/railties/environments/environment.rb @@ -1,8 +1,8 @@ # Be sure to restart your web server when you modify this file. -# Uncomment below to force Rails into production mode -# (Use only when you can't set environment variables through your web/app server) -# ENV['RAILS_ENV'] ||= 'production' # Keep the ||=, don't use =, or tests will wipe production db +# Uncomment below to force Rails into production mode when +# you don't control web/app server and can't set it the proper way +# ENV['RAILS_ENV'] ||= 'production' # Bootstrap the Rails environment, frameworks, and default configuration require File.join(File.dirname(__FILE__), 'boot') |