templates/test/integration/default/serverspec/spec_helper.rb.erb in knife-skeleton-0.1.0 vs templates/test/integration/default/serverspec/spec_helper.rb.erb in knife-skeleton-0.2.0

- old
+ new

@@ -1,22 +1,6 @@ # -*- coding: utf-8 -*- require 'serverspec' -include SpecInfra::Helper::Exec -include SpecInfra::Helper::DetectOS - -begin - require 'rspec_junit_formatter' -rescue LoadError - require 'rubygems/dependency_installer' - Gem::DependencyInstaller.new.install('rspec_junit_formatter') - require 'rspec_junit_formatter' -end - -RSpec.configure do |c| - c.before :all do - c.os = backend(Serverspec::Commands::Base).check_os - end - c.path = '/sbin:/usr/sbin:/usr/bin:/bin' - c.add_formatter 'RspecJunitFormatter', '/tmp/kitchen.xml' -end +set :backend, :exec +set :path, '$PATH:/sbin:/usr/sbin:/usr/bin:/bin'