summaryrefslogtreecommitdiff
path: root/spec/functional/dsl/reboot_pending_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/dsl/reboot_pending_spec.rb')
-rw-r--r--spec/functional/dsl/reboot_pending_spec.rb7
1 files 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