1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Always add AS lib/ to path when running its test suite

This commit is contained in:
Joshua Peek 2009-11-09 22:56:49 -06:00
parent a31ecff554
commit 22b581e04c

View file

@ -1,12 +1,12 @@
ORIG_ARGV = ARGV.dup ORIG_ARGV = ARGV.dup
root = File.expand_path('../../..', __FILE__)
begin begin
require "#{root}/vendor/gems/environment" require File.expand_path('../../../vendor/gems/environment', __FILE__)
rescue LoadError rescue LoadError
$:.unshift("#{root}/activesupport/lib")
$:.unshift("#{root}/activerecord/lib")
end end
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'test/unit' require 'test/unit'
require 'mocha' require 'mocha'