File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 346
346
< p > Hello <%= @resource . email %> </ p >
347
347
<% if @resource . partner . present? && is_primary_partner %>
348
348
< p > You've been invited to become a partner with < strong > <%= organization . name %> !</ strong > </ p >
349
+ < p > <%= organization . invitation_text %> </ p >
349
350
< p > Please click the link below to accept your invitation and create an account and you'll be able to begin requesting distributions.</ p >
350
351
< p > < strong > Please contact <%= organization . email %> if you are encountering any issues. </ strong > </ p >
351
352
<% elsif @resource . partner . present? && !is_primary_partner %>
Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ Hello [Partner's email]
115
115
116
116
You've been invited to become a partner with Pawnee Diaper Bank!
117
117
118
+ [ Customer Partner Invitation Message If Present]
119
+
118
120
Please click the link below to accept your invitation and create an account and you'll be able to begin requesting Distributions.
119
121
120
122
Please contact [ Bank's email] if you are encountering any issues.
Original file line number Diff line number Diff line change 7
7
let ( :partner ) do
8
8
partner = create ( :partner , :uninvited )
9
9
partner . primary_user . delete
10
+ partner . organization . update! ( invitation_text : "Custom Invitation Text" )
10
11
partner . reload
11
12
partner
12
13
end
17
18
18
19
it "invites to primary user" do
19
20
expect ( mail . subject ) . to eq ( "You've been invited to be a partner with #{ user . partner . organization . name } " )
21
+ expect ( mail . html_part . body ) . to include ( partner . organization . invitation_text )
20
22
expect ( mail . html_part . body ) . to include ( "You've been invited to become a partner with <strong>#{ user . partner . organization . name } !</strong>" )
21
23
end
22
24
end
You can’t perform that action at this time.
0 commit comments