summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-01-27 14:48:56 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2017-01-27 14:48:56 -0800
commitbbaabba8037e0f835353564ac0d04bd41aeba371 (patch)
tree04e5e777d9d2f7c66e22e0ea30e102b4b01fd94c
parente9f477a4c1dea22faa5a693f5c1e367aab78a2fa (diff)
downloadmixlib-shellout-bbaabba8037e0f835353564ac0d04bd41aeba371.tar.gz
target correct object
i think? Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/mixlib/shellout_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index e03d845..32742ab 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -1130,7 +1130,7 @@ describe Mixlib::ShellOut do
context "and child processes should be killed" do
it "kills the child processes" do
- expect(Mixlib::ShellOut).to receive(:kill_process) do |instance|
+ expect(shell_out).to receive(:kill_process) do |instance|
expect(instance.wmi_ole_object.Name).to match(/powershell/)
Process.kill(:KILL, instance.wmi_ole_object.processid)
end