Sha256: 12c13cef74b11fb82ad5a8cb1bc48ed0cf61abf4ac318a65b64e94d64fc5a90a

Contents?: true

Size: 750 Bytes

Versions: 6

Compression:

Stored size: 750 Bytes

Contents

require "bundler/gem_tasks"
begin
  require "rspec/core/rake_task"
  require "octorelease"
rescue LoadError
end

if defined?(RSpec)
  task :spec => 'spec:all'

  namespace :spec do
    task :all => [ 'spec:type:all', 'spec:helper', 'spec:unit' ]

    namespace :type do
      oses = Dir.glob('spec/type/*').map {|d| File.basename(d)}

      task :all => oses.map {|os| "spec:type:#{os}" }

      oses.each do |os|
        RSpec::Core::RakeTask.new(os.to_sym) do |t|
          t.pattern = "spec/type/#{os}/*_spec.rb"
        end
      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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta14 Rakefile
serverspec-2.0.0.beta13 Rakefile
serverspec-2.0.0.beta12 Rakefile
serverspec-2.0.0.beta11 Rakefile
serverspec-2.0.0.beta10 Rakefile
serverspec-2.0.0.beta9 Rakefile