Sha256: 4f0c91614bba3d9f3e4c78b99ce8225932f2a8589a1751e285465bf3aa41409b

Contents?: true

Size: 628 Bytes

Versions: 8

Compression:

Stored size: 628 Bytes

Contents

require "rspec/core/rake_task"

desc "Run specs"
task :spec => ['spec:app', 'spec:lib']

namespace :spec do
  desc "Run only specs tagged 'solo'"
  RSpec::Core::RakeTask.new(:solo) do |t|
    t.rspec_opts = %w(--color --tag solo)
  end

  desc "Run only specs tagged NOT tagged 'libraries' (for applications)"
  RSpec::Core::RakeTask.new(:app) do |t|
    puts "Running specs w/ monkeypatch"
    t.rspec_opts = %w(--color --tag ~libraries)
  end

  desc "Run only specs tagged 'libraries'"
  RSpec::Core::RakeTask.new(:lib) do |t|
    puts "Running specs w/o monkeypatch"
    t.rspec_opts = %w(--color --tag libraries)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
whos_dated_who-0.1.0 vendor/bundle/gems/safe_yaml-1.0.3/Rakefile
whos_dated_who-0.0.1 vendor/bundle/gems/safe_yaml-1.0.3/Rakefile
safe_yaml-1.0.3 Rakefile
safe_yaml-1.0.2 Rakefile
safe_yaml-1.0.1 Rakefile
safe_yaml-1.0.0 Rakefile
safe_yaml-1.0.0rc2 Rakefile
safe_yaml-1.0.0rc1 Rakefile