diff options
author | Chris Doherty <cdoherty@getchef.com> | 2014-09-26 15:51:26 -0700 |
---|---|---|
committer | Chris Doherty <cdoherty@getchef.com> | 2014-09-26 15:51:26 -0700 |
commit | 5a1d40d53872702bd6991a4d206ebd65b7e6f8be (patch) | |
tree | 9e7b7145dcc77e2db222eb68022390b2d0f1c99c | |
parent | 92f86d69e10aaec8d3dc6f9e6e0565fb5f82a279 (diff) | |
download | chef-cdoherty-fix-11-ci.tar.gz |
Add the pending() guard to the 'when there's no reboot keys present' spec.cdoherty-fix-11-ci
-rw-r--r-- | spec/functional/dsl/reboot_pending_spec.rb | 7 |
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 |