Skip to content

Commit

Permalink
Fix ugly test.
Browse files Browse the repository at this point in the history
It passes now, but it's still ugly.
  • Loading branch information
sengi committed Jun 21, 2024
1 parent e09c469 commit 9f8a868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/virus_scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Simple wrapper around ClamAV
#
# This expects govuk_clamscan to exist on the PATH, and be a symlink
# to either clamscan or clamdscan
# This expects AssetManager.govuk.clamscan_path to be an executable command
# that is compatible with clamscan or clamdscan.
class VirusScanner
class Error < StandardError; end

Expand Down
2 changes: 1 addition & 1 deletion spec/lib/virus_scanner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
end

it "calls out to clamdscan" do
expect(Open3).to receive(:capture2e).with("govuk_clamscan", "--no-summary", file_path)
expect(Open3).to receive(:capture2e).with("clamdscan", "--no-summary", file_path)

scanner.scan(file_path)
end
Expand Down

0 comments on commit 9f8a868

Please sign in to comment.