From 5a1d40d53872702bd6991a4d206ebd65b7e6f8be Mon Sep 17 00:00:00 2001 From: Chris Doherty Date: Fri, 26 Sep 2014 15:51:26 -0700 Subject: Add the pending() guard to the 'when there's no reboot keys present' spec. --- spec/functional/dsl/reboot_pending_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/functional/dsl/reboot_pending_spec.rb b/spec/functional/dsl/reboot_pending_spec.rb index 10d667f7bd..114754ccba 100644 --- a/spec/functional/dsl/reboot_pending_spec.rb +++ b/spec/functional/dsl/reboot_pending_spec.rb @@ -46,8 +46,11 @@ describe Chef::DSL::RebootPending, :windows_only do describe "reboot_pending?" do - context "when there is nothing to indicate a reboot is pending" do - it { expect(recipe.reboot_pending?).to be_false } + describe "when there is nothing to indicate a reboot is pending" do + it "should return false" do + pending "Found existing registry keys" unless registry_safe? + expect(recipe.reboot_pending?).to be_false + end end describe 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations' do -- cgit v1.2.1