Skip to content
This repository was archived by the owner on Nov 6, 2021. It is now read-only.

Commit 5748c18

Browse files
authored
Merge pull request #399 from Aliciawyse/fix-recertification-mailer
Edits for recertification mailer
2 parents cb94693 + 23f3014 commit 5748c18

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
class RecertificationMailer < ApplicationMailer
2-
default from: "partner@diaper-app.org"
2+
default from: "info@diaper.app"
33
layout "mailer"
44

55
def notice_email(user)
66
@partner = user.partner
77

88
mail to: user.email,
9-
subject: "Please update your agency information"
9+
subject: "Please Update Your Agency Information"
1010
end
1111
end

app/views/recertification_mailer/notice_email.text.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Hi <%= @partner.name %>
22

33
It's time to update your agency information!
44

5-
Please follow this link to verify your agency's information: <%= edit_partner_url(@partner) %>.
5+
Please log in to your account at https://partner.diaper.app/.
66

77
If no information has changed, please click Update.
88
If any information has changed, please amend it on the form and then click Update.

spec/mailers/recertification_mailer_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
let!(:mail) { RecertificationMailer.notice_email(user).deliver_now }
66

77
it "email renders the subject" do
8-
expect(mail.subject).to eq("Please update your agency information")
8+
expect(mail.subject).to eq("Please Update Your Agency Information")
99
end
1010

1111
it "email renders the receiver email" do
1212
expect(mail.to).to eq([user.email])
1313
end
1414

1515
it "email renders the sender email" do
16-
expect(mail.from).to eq(["partner@diaper-app.org"])
16+
expect(mail.from).to eq(["info@diaper.app"])
1717
end
1818

1919
it "email assigns @recertification_url" do
2020
expect(mail.body.encoded)
21-
.to match(edit_partner_url(partner))
21+
.to match('https://partner.diaper.app/')
2222
end
2323
end
2424
end

0 commit comments

Comments
 (0)