Sha256: 7db91928cff7ee04b1c16d0f485c4993251be41e822cb48d062db24ca187e2a2

Contents?: true

Size: 559 Bytes

Versions: 5

Compression:

Stored size: 559 Bytes

Contents

require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'

spec_defaults = lambda do |spec|
  spec.pattern    = 'spec/**/*_spec.rb'
  spec.ruby_opts = %w[ -r./spec/support/config_alias ]
  spec.spec_opts << '--options' << 'spec/spec.opts'
end

Spec::Rake::SpecTask.new(:spec, &spec_defaults)

Spec::Rake::SpecTask.new(:rcov) do |rcov|
  spec_defaults.call(rcov)
  rcov.rcov      = true
  rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
end

RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
  rcov.threshold = 100
end

task :default => :spec

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yardstick-0.9.2 tasks/spec.rake
yardstick-0.9.1 tasks/spec.rake
yardstick-0.9.0 tasks/spec.rake
yardstick-0.8.0 tasks/spec.rake
yardstick-0.7.0 tasks/spec.rake