Sha256: f15ada87058a7c17a3fe5047bb83b708611cb07bbc6f1e736923226ea537ef30

Contents?: true

Size: 898 Bytes

Versions: 2

Compression:

Stored size: 898 Bytes

Contents

# $Id: spec.rake 85 2008-01-01 20:37:31Z tim_pease $

if HAVE_SPEC_RAKE_SPECTASK

namespace :spec do

  desc 'Run all specs with basic output'
  Spec::Rake::SpecTask.new(:run) do |t|
    t.spec_opts = PROJ.spec_opts
    t.spec_files = PROJ.specs
  end

  desc 'Run all specs with text output'
  Spec::Rake::SpecTask.new(:specdoc) do |t|
    t.spec_opts = PROJ.spec_opts + ['--format', 'specdoc']
    t.spec_files = PROJ.specs
  end

  if HAVE_RCOV
    desc 'Run all specs with RCov'
    Spec::Rake::SpecTask.new(:rcov) do |t|
      t.spec_opts = PROJ.spec_opts
      t.spec_files = PROJ.specs
      t.rcov = true
      t.rcov_opts = PROJ.rcov_opts + ['--exclude', 'spec']
    end
  end

end  # namespace :spec

desc 'Alias to spec:run'
task :spec => 'spec:run'

task :clobber => 'spec:clobber_rcov' if HAVE_RCOV

remove_desc_for_task %w(spec:clobber_rcov)

end  # if HAVE_SPEC_RAKE_SPECTASK

# EOF

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webby-0.7.1 tasks/spec.rake
webby-0.7.0 tasks/spec.rake