summaryrefslogtreecommitdiff
path: root/spec/unit/resource/conditional_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-04-05 20:02:33 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-04-06 10:03:15 -0700
commitd3d4ddb596bd4fb87a9ab659112134bd431d3ea9 (patch)
tree031c6309c4aa179af8755f6708eb1a8092684767 /spec/unit/resource/conditional_spec.rb
parentafa4237dbf47996345dafb93da45163bf3673df0 (diff)
downloadchef-d3d4ddb596bd4fb87a9ab659112134bd431d3ea9.tar.gz
switch guards to use shell_out_with_systems_locale
matches the execute resource usage. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/resource/conditional_spec.rb')
-rw-r--r--spec/unit/resource/conditional_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/conditional_spec.rb b/spec/unit/resource/conditional_spec.rb
index 135f798676..0219945936 100644
--- a/spec/unit/resource/conditional_spec.rb
+++ b/spec/unit/resource/conditional_spec.rb
@@ -92,7 +92,7 @@ describe Chef::Resource::Conditional do
describe "after running a command which timed out" do
before do
@conditional = Chef::Resource::Conditional.only_if(@parent_resource, "false")
- allow_any_instance_of(Chef::GuardInterpreter::DefaultGuardInterpreter).to receive(:shell_out).and_raise(Chef::Exceptions::CommandTimeout)
+ allow_any_instance_of(Chef::GuardInterpreter::DefaultGuardInterpreter).to receive(:shell_out_with_systems_locale).and_raise(Chef::Exceptions::CommandTimeout)
end
it "indicates that resource convergence should not continue" do
@@ -195,7 +195,7 @@ describe Chef::Resource::Conditional do
describe "after running a command which timed out" do
before do
@conditional = Chef::Resource::Conditional.not_if(@parent_resource, "false")
- allow_any_instance_of(Chef::GuardInterpreter::DefaultGuardInterpreter).to receive(:shell_out).and_raise(Chef::Exceptions::CommandTimeout)
+ allow_any_instance_of(Chef::GuardInterpreter::DefaultGuardInterpreter).to receive(:shell_out_with_systems_locale).and_raise(Chef::Exceptions::CommandTimeout)
end
it "indicates that resource convergence should continue" do