diff options
author | mwrock <matt@mattwrock.com> | 2020-10-28 15:44:50 -0700 |
---|---|---|
committer | mwrock <matt@mattwrock.com> | 2020-10-28 19:25:43 -0700 |
commit | 67f3ba114e27e8353b7844aede1c26b06fdd7a3e (patch) | |
tree | b4c6cd3f5f82e75108dff0c66c1a858c760011cf /spec/unit/provider | |
parent | ef9649e543b6218053fc98208ce884cc81882ce1 (diff) | |
download | chef-67f3ba114e27e8353b7844aede1c26b06fdd7a3e.tar.gz |
convert most internal powershell_out to powershell_exec
Signed-off-by: mwrock <matt@mattwrock.com>
Diffstat (limited to 'spec/unit/provider')
-rw-r--r-- | spec/unit/provider/package/chocolatey_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/provider/package/chocolatey_spec.rb b/spec/unit/provider/package/chocolatey_spec.rb index 96b17d90f2..ba5739fe55 100644 --- a/spec/unit/provider/package/chocolatey_spec.rb +++ b/spec/unit/provider/package/chocolatey_spec.rb @@ -501,8 +501,7 @@ describe "behavior when Chocolatey is not installed" do before do # the shellout sometimes returns "", but test nil to be safe. - allow(provider).to receive(:choco_install_path).and_return(nil) - provider.instance_variable_set("@choco_install_path", nil) + allow(provider).to receive(:choco_install_path).and_return("") # we don't care what this returns, but we have to let it be called. allow(provider).to receive(:shell_out_compacted!).and_return(double(stdout: "")) |