diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mixlib/shellout/windows_spec.rb | 5 |
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 } |