Skip to content

Commit

Permalink
update the email that partners get when they are approved (#4795)
Browse files Browse the repository at this point in the history
  • Loading branch information
slusy authored Nov 22, 2024
1 parent bd8227b commit 8fe4485
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ PLATFORMS
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23
arm64-darwin-24
x86_64-darwin-20
x86_64-darwin-21
x86_64-darwin-22
Expand Down Expand Up @@ -798,4 +799,4 @@ DEPENDENCIES
webmock (~> 3.24)

BUNDLED WITH
2.5.22
2.5.23
2 changes: 1 addition & 1 deletion app/views/partner_mailer/application_approved.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<p>Hi <%= @partner.name %></p>

<p>
<%= @organization.name %> has approved your application.
You have been approved to make requests for essentials to <%= @organization.name %>.
<br>
<%= link_to "Check out your dashboard", partners_dashboard_url %>
</p>
Expand Down
2 changes: 1 addition & 1 deletion app/views/partner_mailer/application_approved.text.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Hi <%= @partner.name %>

<%= @organization.name %> has approved your application.
You have been approved to make requests for essentials to <%= @organization.name %>.

Check out your dashboard: <%= partners_dashboard_url %>
2 changes: 1 addition & 1 deletion spec/mailers/partner_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

it "renders the body with text that indicates the result and a link to their dashboard" do
expect(subject.body.encoded).to include("Hi #{partner.name}")
expect(subject.body.encoded).to include("#{partner.organization.name} has approved your application.")
expect(subject.body.encoded).to include("You have been approved to make requests for essentials to #{partner.organization.name}.")
expect(subject.body.encoded).to include("/partners/dashboard")
end
end
Expand Down

0 comments on commit 8fe4485

Please sign in to comment.