summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@getchef.com>2014-09-05 17:14:33 -0700
committerChris Doherty <cdoherty@getchef.com>2014-09-10 16:34:28 -0700
commit601ec3416004a62c7baef0f3cacf09d2c62f375e (patch)
treecee7bd28233a9c216f924c57c977d87892e4c1dc
parente1cb4798d79b857da01ae964abd95eae88fee476 (diff)
downloadchef-601ec3416004a62c7baef0f3cacf09d2c62f375e.tar.gz
test against Windows string.
-rw-r--r--spec/functional/rebooter_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/rebooter_spec.rb b/spec/functional/rebooter_spec.rb
index c6140caeff..f1365c04db 100644
--- a/spec/functional/rebooter_spec.rb
+++ b/spec/functional/rebooter_spec.rb
@@ -49,7 +49,7 @@ describe Chef::Platform::Rebooter do
it 'should call #shell_out! when reboot has been requested' do
run_context.request_reboot(reboot_info)
- expect(rebooter).to receive(:shell_out!).once
+ expect(rebooter).to receive(:shell_out!).once.with('shutdown /r /t 5 /c "reboot resource spec test"')
expect(rebooter).to receive(:reboot_if_needed!).once.and_call_original
rebooter.reboot_if_needed!(run_context.node)