Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jazairi committed Feb 9, 2022
1 parent 1041b4f commit a7bff54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/mailers/report_mailer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ReportMailerTest < ActionMailer::TestCase

test 'sends reports for DSpace publication results' do
ClimateControl.modify DISABLE_ALL_EMAIL: 'false' do
results = { total: 2, processed: 1, errors: ["Couldn't find Thesis with 'id'=9999999999999"] }
results = { total: 2, processed: 1, errors: ["Couldn't find Thesis with 'id'=9999999999999"],
preservation_ready: [] }
email = ReportMailer.publication_results_email(results)

assert_emails 1 do
Expand All @@ -37,6 +38,7 @@ class ReportMailerTest < ActionMailer::TestCase
assert_match 'Total theses in output queue: 2', email.body.to_s
assert_match 'Total theses updated: 1', email.body.to_s
assert_match 'Errors found: 1', email.body.to_s
assert_match 'Total theses sent to preservation: 0', email.body.to_s
assert_match 'Couldn&#39;t find Thesis with &#39;id&#39;=9999999999999', email.body.to_s
end
end
Expand Down

0 comments on commit a7bff54

Please sign in to comment.