Sha256: a88039e52a90bc64607c23f1989fc4a299b89a143255a8975b562ceeda676dcf

Contents?: true

Size: 829 Bytes

Versions: 1

Compression:

Stored size: 829 Bytes

Contents

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

task :spec => 'spec:all'

namespace :spec do
  oses = %w( darwin debian gentoo plamo redhat aix solaris solaris10 solaris11 smartos windows freebsd freebsd10)
  backends = %w( exec ssh cmd winrm powershell )

  task :all => [ oses.map {|os| "spec:#{os}" }, backends, :helper, :unit ].flatten

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-1.1.0 Rakefile