diff options
author | John McCrae <jmccrae@chf.io> | 2022-04-04 15:12:49 -0700 |
---|---|---|
committer | John McCrae <jmccrae@chf.io> | 2022-04-04 15:12:49 -0700 |
commit | b422d958965972972a671b7d1bba61fa343f8175 (patch) | |
tree | 026d24f6e96c60f51148c8ebbc0f949e1155cdfb /spec | |
parent | 7c2afb88a4fb34b5515bb1881f335b945b8b0f04 (diff) | |
download | mixlib-shellout-b422d958965972972a671b7d1bba61fa343f8175.tar.gz |
Hard Coding the gems in the gemfile to overcome a Ruby 3.1 bug
Signed-off-by: John McCrae <jmccrae@chf.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mixlib/shellout_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index dce47dd..f2a4ab4 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -1167,7 +1167,7 @@ describe Mixlib::ShellOut do context "and child processes should be killed" do it "kills the child processes" do expect(shell_cmd).to receive(:kill_process) do |instance| - expect(instance.wmi_ole_object.Name).to match(/powershell/) + expect(instance.wmi_ole_object.Name).to match(/powershell.exe/) Process.kill(:KILL, instance.wmi_ole_object.processid) end expect { executed_cmd }.to raise_error(Mixlib::ShellOut::CommandTimeout) |