Sha256: a4b8ba9f7bb5e7e4d1b9cd520debe7a737c6587323d563676ad995a668805bf9

Contents?: true

Size: 864 Bytes

Versions: 7

Compression:

Stored size: 864 Bytes

Contents

begin
  gem 'rspec', '~> 1.1.9'
  gem 'rcov', '~> 0.8.1'
  require 'spec/rake/spectask'
  require 'rcov'
rescue Exception
  nil
end

if defined?(Spec)
  Spec::Rake::SpecTask.new(:spec) do |t|
    t.spec_opts   = ["--options", "spec/spec.opts"]
    t.spec_files  = FileList["spec/**/*_spec.rb"]
  end

  if defined?(Rcov)
    CLOBBER.include('coverage')

    namespace :spec do
      desc "Run all specs in spec directory 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_opts   = ["--exclude", "spec/*,features/*,gems/*"]
      end
    end
  else
    warn "RCov gem is required, please install it (gem install rcov)."
  end
else
  warn "RSpec gem is required, please install it (gem install rspec)."
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
luislavena-rake-compiler-0.1.1 tasks/rspec.rake
luislavena-rake-compiler-0.2.0 tasks/rspec.rake
luislavena-rake-compiler-0.2.1 tasks/rspec.rake
luislavena-rake-compiler-0.3.0 tasks/rspec.rake
luislavena-rake-compiler-0.3.1 tasks/rspec.rake
rake-compiler-0.3.1 tasks/rspec.rake
rake-compiler-0.3.0 tasks/rspec.rake