aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-10-20 16:33:54 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-10-20 16:34:44 -0700
commit4f6d6f7031a88b647814fc0154e6b69b636dc912 (patch)
tree9752430c715e0b5d32713882c267d41554710246 /activesupport/test
parenta5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3 (diff)
downloadrails-4f6d6f7031a88b647814fc0154e6b69b636dc912.tar.gz
rails-4f6d6f7031a88b647814fc0154e6b69b636dc912.tar.bz2
rails-4f6d6f7031a88b647814fc0154e6b69b636dc912.zip
Have all the tests running off a single Gemfile
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/abstract_unit.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb
index af9656615c..f390c66838 100644
--- a/activesupport/test/abstract_unit.rb
+++ b/activesupport/test/abstract_unit.rb
@@ -1,4 +1,12 @@
ORIG_ARGV = ARGV.dup
+root = File.expand_path('../../..', __FILE__)
+begin
+ require "#{root}/vendor/gems/environment"
+rescue LoadError
+ $:.unshift("#{root}/activesupport/lib")
+ $:.unshift("#{root}/activerecord/lib")
+end
+
require 'test/unit'
@@ -11,7 +19,6 @@ rescue LoadError
end
ENV['NO_RELOAD'] = '1'
-$:.unshift "#{File.dirname(__FILE__)}/../lib"
require 'active_support'
require 'active_support/test_case'