Browse Source

tweak bulk upload email copy formatting

pull/1436/head
Phil Lee 3 years ago
parent
commit
40091234d2
  1. 2
      app/mailers/bulk_upload_mailer.rb
  2. 4
      spec/mailers/bulk_upload_mailer_spec.rb

2
app/mailers/bulk_upload_mailer.rb

@ -83,7 +83,7 @@ class BulkUploadMailer < NotifyMailer
.keys
.sort_by { |_col, field| field }
.map do |col, field|
"- Column #{col} (#{row_parser_class.question_for_field(field.to_sym)})"
"- #{row_parser_class.question_for_field(field.to_sym)} (Column #{col})"
end
send_email(

4
spec/mailers/bulk_upload_mailer_spec.rb

@ -21,8 +21,8 @@ RSpec.describe BulkUploadMailer do
let(:expected_errors) do
[
"- Column A (What is the letting type?)",
"- Column E (Management group code)",
"- What is the letting type? (Column A)",
"- Management group code (Column E)",
]
end

Loading…
Cancel
Save