Skip to content
This repository
tag: v2.2.0
Fetching contributors…

Cannot retrieve contributors at this time

file 19 lines (16 sloc) 0.425 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

if RUBY_VERSION >= '1.9'
  require 'cover_me'
  CoverMe.config do |c|
    c.file_pattern = /(#{CoverMe.config.project.root}\/lib\/.+\.rb)/i
  end
else
  RSpec::Core::RakeTask.new(:rcov) do |spec|
    spec.rcov = true
    spec.rcov_opts = ['-Ilib -Ispec --exclude spec,gems']
  end
end

task :default => :spec
Something went wrong with that request. Please try again.