Browse Source

Add comma

pull/1777/head
Kat 3 years ago
parent
commit
87fe692231
  1. 2
      app/views/logs/index.html.erb
  2. 2
      spec/requests/lettings_logs_controller_spec.rb
  3. 2
      spec/requests/sales_logs_controller_spec.rb

2
app/views/logs/index.html.erb

@ -36,7 +36,7 @@
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<p class="govuk-body-l"> <p class="govuk-body-l">
You have uploaded <%= pluralize(@bulk_upload.logs.count, "log") %>. There are errors in <%= pluralize(@bulk_upload.logs_with_errors_count, "log") %> and <%= pluralize(@bulk_upload.bulk_upload_errors.count, "error") %> in total. Select the log to fix the errors. You have uploaded <%= pluralize(@bulk_upload.logs.count, "log") %>. There are errors in <%= pluralize(@bulk_upload.logs_with_errors_count, "log") %>, and <%= pluralize(@bulk_upload.bulk_upload_errors.count, "error") %> in total. Select the log to fix the errors.
</p> </p>
<p class="govuk-body"> <p class="govuk-body">

2
spec/requests/lettings_logs_controller_spec.rb

@ -521,7 +521,7 @@ RSpec.describe LettingsLogsController, type: :request do
it "displays card with help info" do it "displays card with help info" do
get "/lettings-logs?bulk_upload_id[]=#{bulk_upload.id}" get "/lettings-logs?bulk_upload_id[]=#{bulk_upload.id}"
expect(page).to have_content("You have uploaded 1 log. There are errors in 1 log and 1 error in total. Select the log to fix the errors.") expect(page).to have_content("You have uploaded 1 log. There are errors in 1 log, and 1 error in total. Select the log to fix the errors.")
end end
it "displays meta info about the bulk upload" do it "displays meta info about the bulk upload" do

2
spec/requests/sales_logs_controller_spec.rb

@ -399,7 +399,7 @@ RSpec.describe SalesLogsController, type: :request do
it "displays card with help info" do it "displays card with help info" do
get "/sales-logs?bulk_upload_id[]=#{bulk_upload.id}" get "/sales-logs?bulk_upload_id[]=#{bulk_upload.id}"
expect(page).to have_content("You have uploaded 1 log. There are errors in 1 log and 1 error in total. Select the log to fix the errors.") expect(page).to have_content("You have uploaded 1 log. There are errors in 1 log, and 1 error in total. Select the log to fix the errors.")
end end
it "displays meta info about the bulk upload" do it "displays meta info about the bulk upload" do

Loading…
Cancel
Save