Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: puppetlabs/puppet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: db83e484eba979ac546383e1d7840c45a5a7fc4e
Choose a base ref
..
head repository: puppetlabs/puppet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7296cce9c9fcff4d8f54b430c84a2290e57c8d05
Choose a head ref
Showing with 3 additions and 4 deletions.
  1. +3 −4 spec/unit/util/execution_spec.rb
7 changes: 3 additions & 4 deletions spec/unit/util/execution_spec.rb
Original file line number Diff line number Diff line change
@@ -837,12 +837,11 @@ def expect_cwd_to_be(cwd)

it "should raise if it fails to create a Uniquefile for stdout" do
allow(Puppet::FileSystem::Uniquefile).to receive(:new)
.and_raise(
Errno::ENOENT,
'No such file or directory @ rb_file_s_stat - C:\Users\ADMINI~1\AppData\Local\Temp\doesnotexist')
.and_raise(Errno::ENOENT, 'C:\Users\ADMINI~1\AppData\Local\Temp\doesnotexist')

expect {
Puppet::Util::Execution.execute('test command')
}.to raise_error(Errno::ENOENT, 'No such file or directory @ rb_file_s_stat - C:\Users\ADMINI~1\AppData\Local\Temp\doesnotexist')
}.to raise_error(Errno::ENOENT, 'No such file or directory - C:\Users\ADMINI~1\AppData\Local\Temp\doesnotexist')
end
end