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 /spec/functional/rebooter_spec.rb | |
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 'spec/functional/rebooter_spec.rb')
-rw-r--r-- | spec/functional/rebooter_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/functional/rebooter_spec.rb b/spec/functional/rebooter_spec.rb index 79f3a49010..da104c0304 100644 --- a/spec/functional/rebooter_spec.rb +++ b/spec/functional/rebooter_spec.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'spec_helper' +require "spec_helper" describe Chef::Platform::Rebooter do @@ -68,7 +68,7 @@ describe Chef::Platform::Rebooter do run_context.cancel_reboot end - shared_context 'test a reboot method' do + shared_context "test a reboot method" do def test_rebooter_method(method_sym, is_windows, expected_reboot_str) allow(ChefConfig).to receive(:windows?).and_return(is_windows) expect(rebooter).to receive(:shell_out!).once.with(expected_reboot_str) @@ -78,25 +78,25 @@ describe Chef::Platform::Rebooter do end describe 'when using #reboot_if_needed!' do - include_context 'test a reboot method' + include_context "test a reboot method" - it 'should produce the correct string on Windows' do + it "should produce the correct string on Windows" do test_rebooter_method(:reboot_if_needed!, true, expected[:windows]) end - it 'should produce the correct (Linux-specific) string on non-Windows' do + it "should produce the correct (Linux-specific) string on non-Windows" do test_rebooter_method(:reboot_if_needed!, false, expected[:linux]) end end describe 'when using #reboot!' do - include_context 'test a reboot method' + include_context "test a reboot method" - it 'should produce the correct string on Windows' do + it "should produce the correct string on Windows" do test_rebooter_method(:reboot!, true, expected[:windows]) end - it 'should produce the correct (Linux-specific) string on non-Windows' do + it "should produce the correct (Linux-specific) string on non-Windows" do test_rebooter_method(:reboot!, false, expected[:linux]) end end |