summaryrefslogtreecommitdiff
path: root/kitchen-tests/test/fixtures/serverspec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'kitchen-tests/test/fixtures/serverspec_helper.rb')
-rw-r--r--kitchen-tests/test/fixtures/serverspec_helper.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/kitchen-tests/test/fixtures/serverspec_helper.rb b/kitchen-tests/test/fixtures/serverspec_helper.rb
index ad1f866775..feb4c21200 100644
--- a/kitchen-tests/test/fixtures/serverspec_helper.rb
+++ b/kitchen-tests/test/fixtures/serverspec_helper.rb
@@ -2,24 +2,24 @@
# The commented-out platforms in the osmapping hash can be added once we have added them into
# our .kitchen.yml and .kitchen.travis.yml and added the appropriate JSON under test/fixtures/platforms.
-require 'serverspec'
-require 'json'
-require 'ffi_yajl'
+require "serverspec"
+require "json"
+require "ffi_yajl"
set :backend, :exec
include Specinfra::Helper::Properties
-require 'pp'
+require "pp"
pp os
def load_nodestub
case os[:family]
- when 'ubuntu', 'debian'
+ when "ubuntu", "debian"
platform = os[:family]
platform_version = os[:release]
- when 'redhat'
- platform = 'centos'
+ when "redhat"
+ platform = "centos"
platform_version = os[:release].to_i
end
FFI_Yajl::Parser.parse(IO.read("#{ENV['BUSSER_ROOT']}/../kitchen/data/platforms/#{platform}/#{platform_version}.json"), :symbolize_names => true)
@@ -27,6 +27,6 @@ end
# centos-59 doesn't have /sbin in the default path,
# so we must ensure it's on serverspec's path
-set :path, '$PATH:/sbin'
+set :path, "$PATH:/sbin"
set_property load_nodestub