diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-05-25 13:40:15 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-05-25 13:40:15 -0700 |
commit | 9bb4809fb7dc7b37c5334e9e3c284e182a570438 (patch) | |
tree | d57a040d10331402154cad0553ef512c600e3bbe /spec/unit/mixin/shell_out_spec.rb | |
parent | 2d687d12053e2888efa0441fa72f32faf6c7c5f7 (diff) | |
download | chef-9bb4809fb7dc7b37c5334e9e3c284e182a570438.tar.gz |
add internal flag to shell_out and execute resource
this will wind up replacing shell_out_with_systems_locale.
also fixes an issue in the sysctl provider.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/mixin/shell_out_spec.rb')
-rw-r--r-- | spec/unit/mixin/shell_out_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/mixin/shell_out_spec.rb b/spec/unit/mixin/shell_out_spec.rb index 9b12969026..4927a8ff54 100644 --- a/spec/unit/mixin/shell_out_spec.rb +++ b/spec/unit/mixin/shell_out_spec.rb @@ -226,7 +226,7 @@ describe Chef::Mixin::ShellOut do describe "when the last argument is not a Hash" do it "should no longer add environment options and set environment['LC_ALL'] to nil" do - expect(shell_out_obj).to receive(:shell_out_command).with(cmd).and_return(true) + expect(shell_out_obj).to receive(:shell_out_command).with(cmd, {}).and_return(true) shell_out_obj.shell_out_with_systems_locale(cmd) end end |