diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-02-28 18:28:25 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-02-28 18:28:25 -0600 |
commit | 5cc17da8946abbaa86a4d9c91dcd4b05a289493f (patch) | |
tree | a34add759af0b20f8d427f2d194c1ce5e73573ce /activerecord | |
parent | 4377deed35daead6d120207dd94f89d136025c1d (diff) | |
download | rails-5cc17da8946abbaa86a4d9c91dcd4b05a289493f.tar.gz rails-5cc17da8946abbaa86a4d9c91dcd4b05a289493f.tar.bz2 rails-5cc17da8946abbaa86a4d9c91dcd4b05a289493f.zip |
activerecord test load paths
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index 9e8bfbbee8..f77dc801dc 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -1,5 +1,8 @@ require File.expand_path('../../../../load_paths', __FILE__) +lib = File.expand_path("#{File.dirname(__FILE__)}/../../lib") +$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib) + require 'config' require 'test/unit' |