Permalink
Browse files

Fix rspec/rcov rake tasks.

Adds rcov support back in, fix rake tasks for rspec and rcov.
  • Loading branch information...
1 parent 19a3e37 commit c7f18a01640b6dab1c7019df6d6571f901f63986 Winfield Peterson committed Jan 7, 2012
Showing with 3 additions and 9 deletions.
  1. +3 −9 Rakefile
View
@@ -15,18 +15,12 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
-end
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec)
-Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.libs << 'lib' << 'spec'
+RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end
-#task :spec => :check_dependencies
-
task :default => :spec

0 comments on commit c7f18a0

Please sign in to comment.