aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-11-09 22:56:49 -0600
committerJoshua Peek <josh@joshpeek.com>2009-11-09 22:56:49 -0600
commit22b581e04cb13a1a80768c0487490eec3dd85879 (patch)
treece36edd6a1c0e0fec419df566a88370587891db4 /activesupport/test
parenta31ecff554c9ef18af5ee85d57f8d10f9f31b320 (diff)
downloadrails-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/test')
-rw-r--r--activesupport/test/abstract_unit.rb8
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'