Sha256: de88f70816d95624cb9ae76750b6e4dffdde30abebbe71361c5529fb3b4ba500

Contents?: true

Size: 630 Bytes

Versions: 3

Compression:

Stored size: 630 Bytes

Contents

require "bundler/gem_tasks"
require 'rspec/core/rake_task'

task :spec => 'spec:all'

namespace :spec do
  task :all => [ :helper, :backend, :configuration ]

  RSpec::Core::RakeTask.new(:helper) do |t|
    t.pattern = "spec/helper/*_spec.rb"
  end

  task :backend => 'backend:all'
  namespace :backend do
    backends = %w[exec ssh]

    task :all => backends

    backends.each do |backend|
      RSpec::Core::RakeTask.new(backend) do |t|
        t.pattern = "spec/backend/#{backend}/*_spec.rb"
      end
    end
  end

  RSpec::Core::RakeTask.new(:configuration) do |t|
    t.pattern = "spec/configuration_spec.rb"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
specinfra-0.5.2 Rakefile
specinfra-0.5.1 Rakefile
specinfra-0.5.0 Rakefile