Permalink
Browse files

Added lib/ to test load path in order to avoid path when requiring te…

…st_helper.rb (Ruby 1.8 and 1.9 treat differently those paths)
  • Loading branch information...
porras committed Oct 29, 2010
1 parent c78c0ee commit dd4dd689a87a8677c17cb8d38d4d800ff85c6f94
Showing with 3 additions and 3 deletions.
  1. +2 −2 Rakefile
  2. +1 −1 test/carrot_test.rb
View
@@ -21,7 +21,7 @@ rescue LoadError
end
Rake::TestTask.new do |t|
- t.libs << 'lib'
+ t.libs << ['lib', 'test']
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
@@ -35,7 +35,7 @@ Rake::RDocTask.new do |rdoc|
end
Rcov::RcovTask.new do |t|
- t.libs << 'test'
+ t.libs << ['lib', 'test']
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
View
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require 'test_helper'
class CarrotTest < Test::Unit::TestCase
TEST_QUEUE = '_carrot_test'

0 comments on commit dd4dd68

Please sign in to comment.