aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-02-28 18:27:00 -0600
committerJoshua Peek <josh@joshpeek.com>2010-02-28 18:27:00 -0600
commit4377deed35daead6d120207dd94f89d136025c1d (patch)
treec757b53b936100ddea4542cc345e47f1a9148a49
parent1a2fba1b6bcb3fdc5268760f67ab0e4a20fa1059 (diff)
downloadrails-4377deed35daead6d120207dd94f89d136025c1d.tar.gz
rails-4377deed35daead6d120207dd94f89d136025c1d.tar.bz2
rails-4377deed35daead6d120207dd94f89d136025c1d.zip
ensure activemodel lib is setup correctly
-rw-r--r--activemodel/test/cases/helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activemodel/test/cases/helper.rb b/activemodel/test/cases/helper.rb
index 8bcbe54651..8578ab7dbd 100644
--- a/activemodel/test/cases/helper.rb
+++ b/activemodel/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 'active_model'