summaryrefslogtreecommitdiff
path: root/spec/functional/rebooter_spec.rb
diff options
context:
space:
mode:
authorClaire McQuin <mcquin@users.noreply.github.com>2014-10-31 22:03:51 +0000
committerClaire McQuin <mcquin@users.noreply.github.com>2014-10-31 22:03:51 +0000
commit407be089ab54341b8e0d12beb267f931d8189536 (patch)
treedb264f09d783c4c953052fc5db1299c4c075a7ae /spec/functional/rebooter_spec.rb
parent2f942406d9bb64335586cbca982dfbe9d36c0a74 (diff)
parent83965110f4803416ffa535080b129f6546c746e4 (diff)
downloadchef-407be089ab54341b8e0d12beb267f931d8189536.tar.gz
Merge 83965110f4803416ffa535080b129f6546c746e4 into 2f942406d9bb64335586cbca982dfbe9d36c0a74
Diffstat (limited to 'spec/functional/rebooter_spec.rb')
-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 8006580d5c..763021607b 100644
--- a/spec/functional/rebooter_spec.rb
+++ b/spec/functional/rebooter_spec.rb
@@ -70,7 +70,7 @@ describe Chef::Platform::Rebooter do
shared_context 'test a reboot method' do
def test_rebooter_method(method_sym, is_windows, expected_reboot_str)
- Chef::Platform.stub(:windows?).and_return(is_windows)
+ allow(Chef::Platform).to receive(:windows?).and_return(is_windows)
expect(rebooter).to receive(:shell_out!).once.with(expected_reboot_str)
expect(rebooter).to receive(method_sym).once.and_call_original
rebooter.send(method_sym, run_context.node)