summaryrefslogtreecommitdiff
path: root/spec/unit/mixin
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-05-25 13:40:15 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-05-25 13:40:15 -0700
commit9bb4809fb7dc7b37c5334e9e3c284e182a570438 (patch)
treed57a040d10331402154cad0553ef512c600e3bbe /spec/unit/mixin
parent2d687d12053e2888efa0441fa72f32faf6c7c5f7 (diff)
downloadchef-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')
-rw-r--r--spec/unit/mixin/shell_out_spec.rb2
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