Add sibling AS to load path for testing to ensure gems aren't used

This commit is contained in:
Jeremy Kemper 2009-02-06 10:23:58 -08:00
parent 5f56d90085
commit 5581229195
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ task :default => [ :test ]
# Run the unit tests
Rake::TestTask.new { |t|
activesupport_path = "#{File.dirname(__FILE__)}/../activesupport/lib"
t.libs << activesupport_path if File.directory?(activesupport_path)
t.libs << "test"
t.pattern = 'test/**/*_test.rb'
t.verbose = true