summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHo-Sheng Hsiao <hosheng.hsiao@gmail.com>2012-03-30 22:13:19 -0400
committerHo-Sheng Hsiao <hosh@opscode.com>2012-05-10 14:51:43 -0400
commitcbc6c7261db77d945791de8e9bdef5f36ccfa0c4 (patch)
tree79f2a8334d74adc48672c14079f0ecf4842bec7e /spec
parent219f51cf15783077ce483b5bdbc56601e37827fd (diff)
downloadmixlib-shellout-cbc6c7261db77d945791de8e9bdef5f36ccfa0c4.tar.gz
[CHEF-2994][WINDOWS] Factored out utility methods to Mixlib::ShellOut::Windows::Utils
Diffstat (limited to 'spec')
-rw-r--r--spec/mixlib/shellout/windows_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/mixlib/shellout/windows_spec.rb b/spec/mixlib/shellout/windows_spec.rb
index 552e7f5..7296c66 100644
--- a/spec/mixlib/shellout/windows_spec.rb
+++ b/spec/mixlib/shellout/windows_spec.rb
@@ -38,8 +38,9 @@ describe Mixlib::ShellOut::Windows, :windows_only => true do
let(:stubbed_shell_out) { fail NotImplemented, 'Must declare let(:stubbed_shell_out)' }
let(:shell_out) { Mixlib::ShellOut.new(cmd) }
- let(:with_valid_exe_at_location) { lambda { |s| s.stub!(:find_exe_at_location).and_return(executable_path) } }
- let(:with_invalid_exe_at_location) { lambda { |s| s.stub!(:find_exe_at_location).and_return(nil) } }
+ let(:utils) { Mixlib::ShellOut::Windows::Utils }
+ let(:with_valid_exe_at_location) { lambda { |s| utils.stub!(:find_executable).and_return(executable_path) } }
+ let(:with_invalid_exe_at_location) { lambda { |s| utils.stub!(:find_executable).and_return(nil) } }
context 'with empty command' do
let(:stubbed_shell_out) { shell_out }