diff --git a/lib/views/excel_analyzer/notifier_mailer/report.text.erb b/lib/views/excel_analyzer/notifier_mailer/report.text.erb index b506e523..d1840b8f 100644 --- a/lib/views/excel_analyzer/notifier_mailer/report.text.erb +++ b/lib/views/excel_analyzer/notifier_mailer/report.text.erb @@ -4,9 +4,6 @@ spreadsheet due to the detection of potentially suspect hidden data. Admin request URL: <%= admin_request_url(@incoming_message.info_request_id) %> Admin attachment URL: <%= edit_admin_foi_attachment_url(@foi_attachment) %> -The following was detected: -<% @metadata[:excel].each do |key, value| %> - <%= key %>: <%= value %> -<% end %> +Excel Analyzer metadata: <%= JSON.pretty_generate(@metadata[:excel]) %> Please review the file carefully. diff --git a/spec/excel_analyzer/mailers/notifier_mailer_spec.rb b/spec/excel_analyzer/mailers/notifier_mailer_spec.rb index fa19519b..4a23f4b0 100644 --- a/spec/excel_analyzer/mailers/notifier_mailer_spec.rb +++ b/spec/excel_analyzer/mailers/notifier_mailer_spec.rb @@ -47,6 +47,6 @@ it 'includes the metadata in the body' do allow(blob).to receive(:metadata).and_return(excel: { foo: 'bar' }) - expect(mail.body).to include('foo: bar') + expect(mail.body).to include('"foo": "bar"') end end