summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-07-09 13:46:20 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-07-09 13:46:20 +0000
commitcd54efa0c937e18fa163d2d40d43e45f25050400 (patch)
treeb03bd51b73ce87ceabc0ddeee09f04c12f77dc96 /test/test_helper.rb
parenta84ea6866dd302a90b39de08baa5d1982da82585 (diff)
downloadredmine-cd54efa0c937e18fa163d2d40d43e45f25050400.tar.gz
redmine-cd54efa0c937e18fa163d2d40d43e45f25050400.zip
Force the test RAILS_ENV to help prevent purging data when mistyping. #4572
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3840 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 1f735f5f6..c934e1bc2 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-ENV["RAILS_ENV"] ||= "test"
+ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
require File.expand_path(File.dirname(__FILE__) + '/helper_testcase')