Skip to content

Commit

Permalink
Merge pull request #1952 from DFE-Digital/upload-delete-content
Browse files Browse the repository at this point in the history
Update content related to virus deletions
  • Loading branch information
thomasleese authored Jan 26, 2024
2 parents 06481d6 + dc62dca commit ec537b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/check_your_answers_summary/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def format_document(document, field)
[
format_array(uploads, field),
if malware_scan_active && scope.scan_result_suspect.exists?
"<em>One or more upload has been deleted by the virus scanner.</em>"
"<em>#{scope.count} #{"file upload".pluralize(scope.count)} has been scanned as malware and deleted.</em>"
elsif request.path.starts_with?("/assessor") &&
convert_to_pdf_active && !uploads.all?(&:is_pdf?)
helpers.govuk_link_to(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@

it "includes a warning" do
expect(row.at_css(".govuk-summary-list__value").text).to include(
"One or more upload has been deleted by the virus scanner",
"2 file uploads has been scanned as malware and deleted.",
)
end
end
Expand Down

0 comments on commit ec537b9

Please sign in to comment.