Skip to content

Instantly share code, notes, and snippets.

@ingemar
Created November 23, 2010 11:11
Show Gist options
  • Save ingemar/711612 to your computer and use it in GitHub Desktop.
Save ingemar/711612 to your computer and use it in GitHub Desktop.
# in lib/tasks/rspec.rake
# within namespace
namespace :spec do
desc "Run all specs with RCov"
RSpec::Core::RakeTask.new('rcov') do |t|
t.pattern = "./spec/**/*_spec.rb"
t.rcov = true
t.rcov_opts = ['-Ispec --exclude', 'rubygems/*,rcov,.gem/*,blueprints.rb,features/*']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment