Sha256: 10eaa0f1c638941c993b4df52b1a5112f6f96f8d3f165cd4953dc47512640c58

Contents?: true

Size: 885 Bytes

Versions: 3

Compression:

Stored size: 885 Bytes

Contents

# $Id: spec.rake 428 2007-12-31 17:55:51Z 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

# EOF

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bones-1.1.2 tasks/spec.rake
bones-1.2.0 tasks/spec.rake
bones-1.2.1 tasks/spec.rake