Skip to content

Commit

Permalink
possible fix for remove block test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellnit committed Sep 11, 2024
1 parent 5e4f88f commit e9b373e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@
end

it 'removes temporary files' do
expect(FileUtils).to have_received(:rm_f).with(derivative_path)
[derivative_path].each do |path|
expect(FileUtils).to have_received(:rm_f).with(path)
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,9 @@
end

it 'removes temporary files' do
expect(FileUtils).to have_received(:rm_f).with(derivative_path_high)
expect(FileUtils).to have_received(:rm_f).with(derivative_path_low)
[derivative_path_high, derivative_path_low].each do |path|
expect(FileUtils).to have_received(:rm_f).with(path)
end
end
end
end
Expand Down

0 comments on commit e9b373e

Please sign in to comment.