Sha256: 3c91c09fa6b0d3067faa4fd06bffa44969780e6c2a0a87b45f577131179fd255
Contents?: true
Size: 688 Bytes
Versions: 19
Compression:
Stored size: 688 Bytes
Contents
begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new('spec') task :default => :spec rescue LoadError task :spec do abort 'rspec is not available. In order to run spec, you must: bundle install' end end begin namespace :spec do desc "Run all specs in spec directory with RCov (excluding plugin specs)" RSpec::Core::RakeTask.new(:rcov) do |t| t.rcov = true t.rcov_opts = lambda do IO.readlines("spec/rcov.opts").map {|l| l.chomp.split " "}.flatten end end end rescue LoadError namespace :spec do task :rcov do abort "rcov is not available. In order to run #{name}, you must: bundle install" end end end
Version data entries
19 entries across 19 versions & 2 rubygems