Sha256: 2e49d7df512f1553b7d745b82ec59ad85c027041a5761130a2a3f97aa1c5f762

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

require "bundler/gem_tasks"

task :default => [:spec]
begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec) do |spec|
    spec.pattern = 'spec/**/*_spec.rb'
    spec.rspec_opts = ['-c -f d']
  end
end

namespace :spec do
  %w(rspec2 rspec3).each do |gemfile|
    desc "Run Tests by #{gemfile}.gemfile"
    task gemfile do
      sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle install --path .bundle"
      sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec"
    end
  end

  desc "Run All Tests"
  task :all do
    %w(rspec2 rspec3).each do |gemfile|
      Rake::Task["spec:#{gemfile}"].invoke
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ghost_writer-0.5.0 Rakefile