Sha256: f6e8f4bb0f3b573945abc6d77ec0d1b719a06f51bbe35ad36c1cd6576fbd3f76

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

# Specs
require 'spec/rake/spectask'

desc 'Run specifications'
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts << '--options' << ROOT + 'spec/spec.opts'
  t.spec_files = Pathname.glob(ENV['FILES'] || 'spec/**/*_spec.rb').map { |f| f.to_s }
  t.libs << 'lib'

  begin
    # RCov is run by default, except on the JRuby platform
    t.rcov = JRUBY ? false : (ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true)
    t.rcov_opts << '--exclude' << 'spec'
    t.rcov_opts << '--text-summary'
    t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
  rescue Exception
    # rcov not installed
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
data_objects-0.10.0 tasks/spec.rake