Allow an alternative REDMINE_ROOT

This commit is contained in:
Eric Davis
2009-03-06 15:08:29 -08:00
parent 79d7aaca02
commit eb8d3bf002

View File

@@ -1,7 +1,8 @@
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment")
redmine_root = ENV["REDMINE_ROOT"] || File.dirname(__FILE__) + "/../../../.."
require File.expand_path(redmine_root + "/config/environment")
require 'spec'
require 'spec/rails'
require 'ruby-debug'