Sha256: a6b8481d4d6d51f9c2ea4ec9f95ba1bcce2e4a3c3c8778cb3c0e0720b922f92d

Contents?: true

Size: 703 Bytes

Versions: 3

Compression:

Stored size: 703 Bytes

Contents

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

desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
end



if RUBY_VERSION.match(/^1\.8\./)
  desc 'Run all specs with RCov'
  Spec::Rake::SpecTask.new(:rcov) do |t|
    t.spec_opts = ['--options', "spec/spec.opts"]
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.rcov = true
    t.rcov_dir = "coverage"
    t.rcov_opts = ['--exclude', 'spec']
  end
end
  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyredrick-ri_cal-0.0.3 tasks/spec.rake
rubyredrick-ri_cal-0.0.4 tasks/spec.rake
rubyredrick-ri_cal-0.0.5 tasks/spec.rake