Skip to content

Commit

Permalink
Add url check to admin mailer test
Browse files Browse the repository at this point in the history
  • Loading branch information
yulia-bel committed Nov 30, 2023
1 parent 903efe0 commit 124fa2d
Showing 1 changed file with 2 additions and 2 deletions.
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: ""))
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.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: ""))
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.farewell_html"))
end
end
Expand Down

0 comments on commit 124fa2d

Please sign in to comment.