Update "proposal" notification email to add unsubscribe link
We modified the link that previously redirected us to the "My content" page to redirect us to the new page for managing subscriptions.
This commit is contained in:
@@ -92,6 +92,7 @@ describe "System Emails" do
|
||||
href: proposal_url(proposal_b, anchor: "tab-notifications", host: app_host))
|
||||
expect(page).to have_content("Proposal A Notification Body")
|
||||
expect(page).to have_content("Proposal B Notification Body")
|
||||
expect(page).to have_link "Notifications"
|
||||
end
|
||||
|
||||
scenario "#budget_investment_created" do
|
||||
|
||||
@@ -303,7 +303,7 @@ describe "Emails" do
|
||||
expect(email).to have_body_text(proposal2.author.name)
|
||||
|
||||
expect(email).not_to have_body_text(proposal3.title)
|
||||
expect(email).to have_body_text(/#{account_path}/)
|
||||
expect(email).to have_body_text(edit_subscriptions_path(token: user.subscriptions_token))
|
||||
expect(email).to have_body_text("Visit this proposal and unfollow it to stop receiving notifications.")
|
||||
|
||||
notification1.reload
|
||||
|
||||
Reference in New Issue
Block a user