Skip to content

Commit

Permalink
Fix failing specs to match new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Nov 17, 2016
1 parent 6e85f1a commit 03c8cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/libraries/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
run_context: double(node: { 'ark' => { 'tar' => 'sevenzip_command' } })
)

expect(cherry_pick_command).to eq('C:\\Program Files\\7-Zip7z.exe e "/resource/release_file" -o"/resource/path" -uy -r /resource/creates')
expect(cherry_pick_command).to eq('C:\\Program Files\\7-Zip7z.exe e "/resource/release_file" -aoa -o"/resource/path" -uy -r /resource/creates')
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/libraries/sevenzip_command_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
describe '#unpack' do
it 'generates the correct command' do
allow(subject).to receive(:make_temp_directory) { 'temp_directory' }
expected_command = "\"C:\\Program Files\\7-zip\\7z.exe\" e \"release_file\" -so | \"C:\\Program Files\\7-zip\\7z.exe\" x -aoa -si -ttar -o\"temp_directory\" -uy && for /f %1 in ('dir /ad /b \"temp_directory\"') do c:\\Windows\\System32\\xcopy \"temp_directory\\%1\" \"home_dir\" /s /e"
expected_command = "\"C:\\Program Files\\7-zip\\7z.exe\" e \"release_file\" -so | \"C:\\Program Files\\7-zip\\7z.exe\" x -aoa -si -ttar -o\"temp_directory\" -uy && for /f %1 in ('dir /ad /b \"temp_directory\"') do c:\\Windows\\System32\\xcopy \"temp_directory\\%1\" \"path\" /s /e"
expect(subject.unpack).to eq(expected_command)
end
end
Expand Down

0 comments on commit 03c8cb0

Please sign in to comment.