Skip to content

Instantly share code, notes, and snippets.

View marcio's full-sized avatar
🏠
Working from home

Marcio Gasparotto marcio

🏠
Working from home
  • Ezy Collect
  • Sydney, Australia
View GitHub Profile
@roovo
roovo / coverage.rake
Created December 13, 2010 12:38
for generating coverage with rspec 2 in ruby 1.9.2 using Simplecov
Rake.application.instance_variable_get('@tasks').delete('spec:rcov')
module SimpleCov
class RakeTask < ::Rake::TaskLib
def initialize(*args)
desc "Run RSpec code examples"
task(args.shift || :simplecov) do
RakeFileUtils.send(:verbose, true) do
if files_to_run.empty?