diff --git a/app/views/receipt_mailer/receipt_email.html.erb b/app/views/receipt_mailer/receipt_email.html.erb index 4aa5d5f4..92e43542 100644 --- a/app/views/receipt_mailer/receipt_email.html.erb +++ b/app/views/receipt_mailer/receipt_email.html.erb @@ -35,9 +35,6 @@ The information we have on record is listed below.

Abstract:
<%= simple_format(@thesis.abstract, {}, wrapper_tag: "p") %> Notes: <%= @thesis.author_note %>
-<% if satisfies_advanced_degree?(@thesis) %> - Consent to send thesis to ProQuest: <%= render_proquest_status(@thesis) %> -<% end %>

Let us know if you have any questions. And again, congratulations diff --git a/test/mailers/receipt_mailer_test.rb b/test/mailers/receipt_mailer_test.rb index ff2b93d3..b87a9dcc 100644 --- a/test/mailers/receipt_mailer_test.rb +++ b/test/mailers/receipt_mailer_test.rb @@ -18,7 +18,9 @@ class ReceiptMailerTest < ActionMailer::TestCase end end - test 'confirmation emails for graduate theses include ProQuest consent' do + # This used to be a test that the emails _do_ include ProQuest consent, but we removed that feature in December 2024. + # This test is to ensure that grad students do not see a nonexistent metadata field in their receipt email. + test 'confirmation emails for graduate theses do not include ProQuest consent' do ClimateControl.modify DISABLE_ALL_EMAIL: 'false' do thesis = theses(:doctor) user = users(:basic) @@ -29,7 +31,7 @@ class ReceiptMailerTest < ActionMailer::TestCase email.deliver_now end - assert_match 'Consent to send thesis to ProQuest: Opt-in status not reconciled', email.body.to_s + refute_match 'Consent to send thesis to ProQuest:', email.body.to_s end end