setting RAILS_ROOT will prevent RAILS_ROOT/spec/spec_helper.rb from loading environment, fixed

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@161 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
rkh 15 years ago
parent 98863e4fb8
commit dad59132f2
  1. 2
      spec/spec_helper.rb

@ -1,5 +1,5 @@
begin
RAILS_ROOT = File.expand_path(".") unless defined? RAILS_ROOT
require "config/environment" unless defined? RAILS_ROOT
require RAILS_ROOT + '/spec/spec_helper'
rescue LoadError => error
puts <<-EOS

Loading…
Cancel
Save