This repository was archived by the owner on Nov 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
views/recertification_mailer Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
class RecertificationMailer < ApplicationMailer
2
- default from : "partner @diaper-app.org "
2
+ default from : "info @diaper.app "
3
3
layout "mailer"
4
4
5
5
def notice_email ( user )
6
6
@partner = user . partner
7
7
8
8
mail to : user . email ,
9
- subject : "Please update your agency information "
9
+ subject : "Please Update Your Agency Information "
10
10
end
11
11
end
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Hi <%= @partner.name %>
2
2
3
3
It's time to update your agency information!
4
4
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/ .
6
6
7
7
If no information has changed, please click Update.
8
8
If any information has changed, please amend it on the form and then click Update.
Original file line number Diff line number Diff line change 5
5
let! ( :mail ) { RecertificationMailer . notice_email ( user ) . deliver_now }
6
6
7
7
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 " )
9
9
end
10
10
11
11
it "email renders the receiver email" do
12
12
expect ( mail . to ) . to eq ( [ user . email ] )
13
13
end
14
14
15
15
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 " ] )
17
17
end
18
18
19
19
it "email assigns @recertification_url" do
20
20
expect ( mail . body . encoded )
21
- . to match ( edit_partner_url ( partner ) )
21
+ . to match ( 'https:// partner.diaper.app/' )
22
22
end
23
23
end
24
24
end
You can’t perform that action at this time.
0 commit comments