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:
parent
a31ecff554
commit
22b581e04c
1 changed files with 4 additions and 4 deletions
|
@ -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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue