diff options
author | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
commit | 51cfbdc4d16739caac4d946fadbe678444aafe34 (patch) | |
tree | 56dfd8f1cd9fd933de27268b32402e955a43ac2b /kitchen-tests/test | |
parent | 05064423057d4cf46f4713b81b08829cf6d20af6 (diff) | |
download | chef-51cfbdc4d16739caac4d946fadbe678444aafe34.tar.gz |
Use double quotes by default
This is an entirely mechanically generated (chefstyle -a) change, to go
along with chef/chefstyle#5 . We should pick something and use it
consistently, and my opinion is that double quotes are the appropriate
thing.
Diffstat (limited to 'kitchen-tests/test')
-rw-r--r-- | kitchen-tests/test/fixtures/serverspec_helper.rb | 16 | ||||
-rw-r--r-- | kitchen-tests/test/integration/webapp/serverspec/Gemfile | 2 |
2 files changed, 9 insertions, 9 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 diff --git a/kitchen-tests/test/integration/webapp/serverspec/Gemfile b/kitchen-tests/test/integration/webapp/serverspec/Gemfile index 0cb00ce354..eef1450f7a 100644 --- a/kitchen-tests/test/integration/webapp/serverspec/Gemfile +++ b/kitchen-tests/test/integration/webapp/serverspec/Gemfile @@ -1,4 +1,4 @@ # This Gemfile is only needed so that busser will install gems it needs for serverspec_helper.rb to work source "https://rubygems.org" -gem 'ffi-yajl', '~> 1.1' # Go away, JSON gem +gem "ffi-yajl", "~> 1.1" # Go away, JSON gem |