Skip to content

Instantly share code, notes, and snippets.

@jbrown
Created November 11, 2010 19:52
Show Gist options
  • Save jbrown/673069 to your computer and use it in GitHub Desktop.
Save jbrown/673069 to your computer and use it in GitHub Desktop.
Patches the rake spec:rcov task for a rails project using RSpec 2.
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec:rcov') do |t|
t.rcov = true
t.rcov_opts = '--rails --exclude "spec/*,gems/*"'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment