aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-02-28 18:28:25 -0600
committerJoshua Peek <josh@joshpeek.com>2010-02-28 18:28:25 -0600
commit5cc17da8946abbaa86a4d9c91dcd4b05a289493f (patch)
treea34add759af0b20f8d427f2d194c1ce5e73573ce /activerecord
parent4377deed35daead6d120207dd94f89d136025c1d (diff)
downloadrails-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.rb3
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'