Sha256: 364504b50c5ed0b034bc5b8e15fead83acadb44295c76582b5d496899d4658fd

Contents?: true

Size: 697 Bytes

Versions: 3

Compression:

Stored size: 697 Bytes

Contents

require 'spec/rake/spectask'
  
desc "Run all specifications"
Spec::Rake::SpecTask.new(:spec) do |t|
  t.libs << "lib"
  t.spec_opts = ["--color", "--require", "spec/spec_helper.rb"]
end
  
namespace :spec do

  desc "Run all specifications verbosely"
  Spec::Rake::SpecTask.new(:verbose) do |t|
    t.libs << "lib"
    t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
  end
  
  desc "Run specific specification verbosely (specify SPEC)"
  Spec::Rake::SpecTask.new(:select) do |t|
    t.libs << "lib"
    t.spec_files = [ENV["SPEC"]]
    t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
  end
  
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
terminal-table-1.5.0 tasks/spec.rake
modern-user-agent-1.2.0 tasks/spec.rake
modern-user-agent-1.1.0 tasks/spec.rake