Skip to content

Commit fb03c2e

Browse files
authored
Merge pull request #1407 from MITLibraries/remove-proquest-from-email
Remove ProQuest consent field from receipt email
2 parents 679165e + 095f158 commit fb03c2e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/views/receipt_mailer/receipt_email.html.erb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ The information we have on record is listed below.</p>
3535
<strong>Abstract:</strong><br>
3636
<%= simple_format(@thesis.abstract, {}, wrapper_tag: "p") %>
3737
<strong>Notes:</strong> <%= @thesis.author_note %><br>
38-
<% if satisfies_advanced_degree?(@thesis) %>
39-
<strong>Consent to send thesis to ProQuest:</strong> <%= render_proquest_status(@thesis) %>
40-
<% end %>
4138
</div>
4239

4340
<p>Let us know if you have any questions. And again, congratulations

test/mailers/receipt_mailer_test.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class ReceiptMailerTest < ActionMailer::TestCase
1818
end
1919
end
2020

21-
test 'confirmation emails for graduate theses include ProQuest consent' do
21+
# This used to be a test that the emails _do_ include ProQuest consent, but we removed that feature in December 2024.
22+
# This test is to ensure that grad students do not see a nonexistent metadata field in their receipt email.
23+
test 'confirmation emails for graduate theses do not include ProQuest consent' do
2224
ClimateControl.modify DISABLE_ALL_EMAIL: 'false' do
2325
thesis = theses(:doctor)
2426
user = users(:basic)
@@ -29,7 +31,7 @@ class ReceiptMailerTest < ActionMailer::TestCase
2931
email.deliver_now
3032
end
3133

32-
assert_match '<strong>Consent to send thesis to ProQuest:</strong> Opt-in status not reconciled', email.body.to_s
34+
refute_match '<strong>Consent to send thesis to ProQuest:</strong>', email.body.to_s
3335
end
3436
end
3537

0 commit comments

Comments
 (0)