Sha256: 752514e298f78b7f029def8e504e039b0fc5ba580248acce23f388c884a8adac

Contents?: true

Size: 593 Bytes

Versions: 25

Compression:

Stored size: 593 Bytes

Contents

require 'spec/rake/spectask'

desc "Run all specs in spec directory"
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
end

namespace :spec do
  desc "Run all specs in spec directory with RCov (excluding plugin specs)"
  Spec::Rake::SpecTask.new(:rcov) do |t|
    t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/../spec/spec.opts\""]
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.rcov = true
    t.rcov_opts = lambda do
      IO.readlines("#{File.dirname(__FILE__)}/../spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
    end
  end
end

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
rules_engine-0.0.1 tasks/rspec.rake
dougo_layout-0.0.4 tasks/rspec.rake
dougo_layout-0.0.3 tasks/rspec.rake
dougo_layout-0.0.2 tasks/rspec.rake
dougo_layout-0.0.1 tasks/rspec.rake