Sha256: 07b0834dfd57062a95bfec48eb4d1318057c6f5322d0bd481b46983510830231

Contents?: true

Size: 955 Bytes

Versions: 30

Compression:

Stored size: 955 Bytes

Contents

begin

  begin
    require 'rspec/core/rake_task'
  rescue LoadError
    require 'spec/rake/spectask'

    module RSpec
      module Core
        RakeTask = Spec::Rake::SpecTask
      end
    end
  end

  desc 'run all specs'
  task :spec => %w[ spec:unit spec:integration ]

  namespace :spec do
    RSpec::Core::RakeTask.new(:integration) do |t|
      t.pattern = 'spec/integration/**/*_spec.rb'
    end

    RSpec::Core::RakeTask.new(:unit) do |t|
      t.pattern = 'spec/unit/**/*_spec.rb'
    end
  end
rescue LoadError
  task :spec do
    abort 'rspec is not available. In order to run spec, you must: gem install rspec'
  end
end

begin
  desc "Generate code coverage"
  RSpec::Core::RakeTask.new(:rcov) do |t|
    t.rcov      = true
    t.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
  end
rescue LoadError
  task :rcov do
    abort 'rcov is not available. In order to run rcov, you must: gem install rcov'
  end
end

task :test => 'spec'

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
response-0.0.2 tasks/spec.rake
mutant-0.2.20 tasks/spec.rake
mutant-0.2.17 tasks/spec.rake
mutant-0.2.16 tasks/spec.rake
mutant-0.2.15 tasks/spec.rake
mutant-0.2.14 tasks/spec.rake
mutant-0.2.13 tasks/spec.rake
mutant-0.2.12 tasks/spec.rake
mutant-0.2.11 tasks/spec.rake
mutant-0.2.9 tasks/spec.rake
mutant-0.2.8 tasks/spec.rake
mutant-0.2.7 tasks/spec.rake
mutant-0.2.6 tasks/spec.rake
mutant-0.2.5 tasks/spec.rake
mutant-0.2.4 tasks/spec.rake
mutant-0.2.3 tasks/spec.rake
mutant-0.2.2 tasks/spec.rake
mutant-0.2.1 tasks/spec.rake
mutant-0.2.0 tasks/spec.rake
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/tasks/spec.rake