diff options
Diffstat (limited to 'spec/unit/dsl/reboot_pending_spec.rb')
-rw-r--r-- | spec/unit/dsl/reboot_pending_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/dsl/reboot_pending_spec.rb b/spec/unit/dsl/reboot_pending_spec.rb index 6705820e17..49696f7cc3 100644 --- a/spec/unit/dsl/reboot_pending_spec.rb +++ b/spec/unit/dsl/reboot_pending_spec.rb @@ -30,13 +30,13 @@ describe Chef::DSL::RebootPending do context "platform is windows" do before do - allow(recipe).to receive(:platform?).with('windows').and_return(true) + allow(recipe).to receive(:platform?).with("windows").and_return(true) allow(recipe).to receive(:registry_key_exists?).and_return(false) allow(recipe).to receive(:registry_value_exists?).and_return(false) end it 'should return true if "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations" exists' do - allow(recipe).to receive(:registry_value_exists?).with('HKLM\SYSTEM\CurrentControlSet\Control\Session Manager', { :name => 'PendingFileRenameOperations' }).and_return(true) + allow(recipe).to receive(:registry_value_exists?).with('HKLM\SYSTEM\CurrentControlSet\Control\Session Manager', { :name => "PendingFileRenameOperations" }).and_return(true) expect(recipe.reboot_pending?).to be_truthy end @@ -66,16 +66,16 @@ describe Chef::DSL::RebootPending do context "platform is ubuntu" do before do - allow(recipe).to receive(:platform?).with('ubuntu').and_return(true) + allow(recipe).to receive(:platform?).with("ubuntu").and_return(true) end - it 'should return true if /var/run/reboot-required exists' do - allow(File).to receive(:exists?).with('/var/run/reboot-required').and_return(true) + it "should return true if /var/run/reboot-required exists" do + allow(File).to receive(:exists?).with("/var/run/reboot-required").and_return(true) expect(recipe.reboot_pending?).to be_truthy end - it 'should return false if /var/run/reboot-required does not exist' do - allow(File).to receive(:exists?).with('/var/run/reboot-required').and_return(false) + it "should return false if /var/run/reboot-required does not exist" do + allow(File).to receive(:exists?).with("/var/run/reboot-required").and_return(false) expect(recipe.reboot_pending?).to be_falsey end end |