Rakefile in serverspec-0.8.1 vs Rakefile in serverspec-0.9.0

- old
+ new

@@ -2,13 +2,13 @@ require 'rspec/core/rake_task' task :spec => 'spec:all' namespace :spec do - oses = %w( darwin debian gentoo redhat solaris solaris10 solaris11 smartos ) + oses = %w( darwin debian gentoo redhat solaris solaris10 solaris11 smartos windows) - task :all => [ oses.map {|os| "spec:#{os}" }, :helpers, :exec, :ssh ].flatten + task :all => [ oses.map {|os| "spec:#{os}" }, :helpers, :exec, :ssh, :cmd, :winrm, :powershell ].flatten oses.each do |os| RSpec::Core::RakeTask.new(os.to_sym) do |t| t.pattern = "spec/#{os}/*_spec.rb" end @@ -16,13 +16,11 @@ RSpec::Core::RakeTask.new(:helpers) do |t| t.pattern = "spec/helpers/*_spec.rb" end - RSpec::Core::RakeTask.new(:exec) do |t| - t.pattern = "spec/backend/exec/*_spec.rb" - end - - RSpec::Core::RakeTask.new(:ssh) do |t| - t.pattern = "spec/backend/ssh/*_spec.rb" + [:exec, :ssh, :cmd, :winrm, :powershell].each do |backend| + RSpec::Core::RakeTask.new(backend) do |t| + t.pattern = "spec/backend/#{backend.to_s}/*_spec.rb" + end end end