Skip to content

Commit

Permalink
Merge pull request #805 from Vizzuality/fix/backend-new-account-url-n…
Browse files Browse the repository at this point in the history
…otification

Update link url in new account mail notification
  • Loading branch information
yulia-bel authored Nov 30, 2023
2 parents 1bb5994 + 9747666 commit 76de0f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/app/views/admin_mailer/investor_created.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h3><%= t "admin_mailer.greetings", full_name: @admin.full_name %></h3>
<p><%= t "admin_mailer.investor_created.content_html", new_investor_url: link_to('New Investor', backoffice_investor_url(@investor)) %></p>
<p><%= t "admin_mailer.investor_created.content_html", new_investor_url: link_to('New Investor', edit_backoffice_investor_url(@investor)) %></p>
<p><%= t "admin_mailer.farewell_html" %></p>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h3><%= t "admin_mailer.greetings", full_name: @admin.full_name %></h3>
<p><%= t "admin_mailer.project_developer_created.content_html", new_pd_url: link_to('New Project Developer', backoffice_project_developer_url(@project_developer)) %></p>
<p><%= t "admin_mailer.project_developer_created.content_html", new_pd_url: link_to('New Project Developer', edit_backoffice_project_developer_url(@project_developer)) %></p>
<p><%= t "admin_mailer.farewell_html" %></p>
4 changes: 2 additions & 2 deletions backend/spec/mailers/admin_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

it "renders the body" do
expect(mail.body.encoded).to match(I18n.t("admin_mailer.greetings", full_name: admin.full_name))
expect(mail.body.encoded).to match(I18n.t("admin_mailer.project_developer_created.content_html", new_pd_url: link_to("New Project Developer", backoffice_project_developer_url(project_developer))))
expect(mail.body.encoded).to match(I18n.t("admin_mailer.project_developer_created.content_html", new_pd_url: link_to("New Project Developer", edit_backoffice_project_developer_url(project_developer))))
expect(mail.body.encoded).to match(I18n.t("admin_mailer.farewell_html"))
end
end
Expand All @@ -48,7 +48,7 @@

it "renders the body" do
expect(mail.body.encoded).to match(I18n.t("admin_mailer.greetings", full_name: admin.full_name))
expect(mail.body.encoded).to match(I18n.t("admin_mailer.investor_created.content_html", new_investor_url: link_to("New Investor", backoffice_investor_url(investor))))
expect(mail.body.encoded).to match(I18n.t("admin_mailer.investor_created.content_html", new_investor_url: link_to("New Investor", edit_backoffice_investor_url(investor))))
expect(mail.body.encoded).to match(I18n.t("admin_mailer.farewell_html"))
end
end
Expand Down

0 comments on commit 76de0f1

Please sign in to comment.