diff options
author | Adam Edwards <adamed@opscode.com> | 2014-03-29 08:06:56 -0700 |
---|---|---|
committer | Adam Edwards <adamed@opscode.com> | 2014-03-29 08:06:56 -0700 |
commit | f596b16abda4aa0642add2dd2f0af900956f6a73 (patch) | |
tree | ce4547ac59b2669d696ad26c0c6b69fa6e312567 /spec/unit/resource/conditional_spec.rb | |
parent | 718de5b01c5458e512004bf072618052ffa654bc (diff) | |
download | chef-f596b16abda4aa0642add2dd2f0af900956f6a73.tar.gz |
CR feedback: move command evaluation to guard interpreter
Diffstat (limited to 'spec/unit/resource/conditional_spec.rb')
-rw-r--r-- | spec/unit/resource/conditional_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/conditional_spec.rb b/spec/unit/resource/conditional_spec.rb index 99d9aaa408..4df185bcd6 100644 --- a/spec/unit/resource/conditional_spec.rb +++ b/spec/unit/resource/conditional_spec.rb @@ -52,7 +52,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") - @conditional.stub(:shell_out).and_raise(Chef::Exceptions::CommandTimeout) + Chef::GuardInterpreter::DefaultGuardInterpreter.any_instance.stub(:shell_out).and_raise(Chef::Exceptions::CommandTimeout) end it 'indicates that resource convergence should not continue' do @@ -111,7 +111,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") - @conditional.stub(:shell_out).and_raise(Chef::Exceptions::CommandTimeout) + Chef::GuardInterpreter::DefaultGuardInterpreter.any_instance.stub(:shell_out).and_raise(Chef::Exceptions::CommandTimeout) end it 'indicates that resource convergence should continue' do |