Permalink
Browse files

avoid rake/testtask -- fixes testing on 1.9.3

  • Loading branch information...
1 parent edd4ead commit 2e229edaf9eeb41c27f61d7212ae27a05e21b9a8 Lee Jarvis committed Aug 1, 2011
Showing with 4 additions and 6 deletions.
  1. +3 −5 Rakefile
  2. +1 −1 test/helper.rb
View
@@ -5,11 +5,9 @@ def version
contents[/VERSION = "([^"]+)"/, 1]
end
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
+task :test do
+ $:.unshift './test'
+ Dir.glob('test/test_*.rb').each { |t| require File.basename(t) }
end
desc "Generate RCov test coverage and open in your browser"
View
@@ -1,5 +1,5 @@
unless defined? Chronic
- $:.unshift File.expand_path('../../lib')
+ $:.unshift File.expand_path('../../lib', __FILE__)
require 'chronic'
end

0 comments on commit 2e229ed

Please sign in to comment.