Skip to content
This repository
tree: df0c21c14b
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (14 sloc) 0.457 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
require 'rspec/core/rake_task'

desc 'Default: run specs.'
task :default => :spec

desc "Run specs"
RSpec::Core::RakeTask.new do |t|
  t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
  # Put spec opts in a file named .rspec in root
end

desc "Generate code coverage"
RSpec::Core::RakeTask.new(:coverage) do |t|
  t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec']
end
Something went wrong with that request. Please try again.