Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix rspec/rcov rake tasks.

Adds rcov support back in, fix rake tasks for rspec and rcov.
  • Loading branch information...
commit c7f18a01640b6dab1c7019df6d6571f901f63986 1 parent 19a3e37
Winfield Peterson authored
Showing with 3 additions and 9 deletions.
  1. +3 −9 Rakefile
View
12 Rakefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.