diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-11-09 22:56:49 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-11-09 22:56:49 -0600 |
commit | 22b581e04cb13a1a80768c0487490eec3dd85879 (patch) | |
tree | ce36edd6a1c0e0fec419df566a88370587891db4 /activesupport | |
parent | a31ecff554c9ef18af5ee85d57f8d10f9f31b320 (diff) | |
download | rails-22b581e04cb13a1a80768c0487490eec3dd85879.tar.gz rails-22b581e04cb13a1a80768c0487490eec3dd85879.tar.bz2 rails-22b581e04cb13a1a80768c0487490eec3dd85879.zip |
Always add AS lib/ to path when running its test suite
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/abstract_unit.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb index 8967b54537..d640c9bc63 100644 --- a/activesupport/test/abstract_unit.rb +++ b/activesupport/test/abstract_unit.rb @@ -1,12 +1,12 @@ ORIG_ARGV = ARGV.dup -root = File.expand_path('../../..', __FILE__) + begin - require "#{root}/vendor/gems/environment" + require File.expand_path('../../../vendor/gems/environment', __FILE__) rescue LoadError - $:.unshift("#{root}/activesupport/lib") - $:.unshift("#{root}/activerecord/lib") end +$:.unshift(File.dirname(__FILE__) + '/../lib') + require 'test/unit' require 'mocha' |