Sha256: 18e21a1376ca106ad5cc4320065d5e7a1cbbd96e287e6e762af7ff01b8770b4e

Contents?: true

Size: 895 Bytes

Versions: 4

Compression:

Stored size: 895 Bytes

Contents

begin
  require 'rspec'
rescue LoadError
  require 'rubygems' unless ENV['NO_RUBYGEMS']
  require 'rspec'
end

begin
  require 'rspec/core/rake_task'
rescue LoadError
  puts <<-EOS
To use rspec for testing you must install rspec gem:
    gem install rspec
EOS
  exit(0)
end

desc "Run the specs under spec"
RSpec::Core::RakeTask.new do |t|
  t.pattern = 'spec/**/*_spec.rb'
end

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.pattern = "./spec/**/*_spec.rb"
    t.rcov_opts = '--exclude /gems/,/Library/,/usr/,lib/tasks,.bundle,config,/lib/rspec/,/lib/rspec-,spec/*'
  end

  desc "Print Specdoc for all specs (excluding plugin specs)"
  RSpec::Core::RakeTask.new(:doc) do |t|
    t.rspec_opts = ["--format", "specdoc", "--dry-run"]
    t.pattern = "./spec/**/*_spec.rb"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
box-release-0.0.4 tasks/rspec.rake
box-release-0.0.3 tasks/rspec.rake
box-release-0.0.2 tasks/rspec.rake
box-release-0.0.1 tasks/rspec.rake