summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@getchef.com>2014-09-26 15:51:26 -0700
committerChris Doherty <cdoherty@ooyala.com>2014-09-29 15:09:51 -0700
commit074dae2a6b40240cd6aa4b379e639e4cfd1623e8 (patch)
tree0bda143ca60779c4a773012dcbb1c9566626d5f0 /spec/functional
parent1701247f9f19a895bb81216d9799b857d466d10e (diff)
downloadchef-074dae2a6b40240cd6aa4b379e639e4cfd1623e8.tar.gz
Add the pending() guard to the 'when there's no reboot keys present' spec.
Diffstat (limited to 'spec/functional')
-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