Don't clobber RAILS_ROOT

This commit is contained in:
Eric Davis
2008-05-20 16:06:32 -07:00
parent 00f8b19acf
commit 9484d41850

View File

@@ -1,5 +1,4 @@
# Modifided from the RSpec on Rails plugins
RAILS_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../')
PLUGIN_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../')
@@ -11,7 +10,7 @@ $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
require 'spec/rake/spectask'
require 'spec/translator'
spec_prereq = File.exist?(File.join(RAILS_ROOT, 'config', 'database.yml')) ? "db:test:prepare" : :noop
spec_prereq = File.exist?(File.join(File.expand_path(File.dirname(__FILE__) + '/../../../'), 'config', 'database.yml')) ? "db:test:prepare" : :noop
task :noop do
end