Change Proposal Notification Digest link to anchor
On the proposal notification digest messages there was a link to each notification. Instead we need that link to point towards the notifications tab of the proposal.
This commit is contained in:
@@ -306,14 +306,14 @@ feature 'Emails' do
|
||||
expect(email).to have_body_text(notification1.notifiable.body)
|
||||
expect(email).to have_body_text(proposal1.author.name)
|
||||
|
||||
expect(email).to have_body_text(/#{notification_path(notification1)}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal1, anchor: 'tab-notifications')}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal1, anchor: 'comments')}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal1, anchor: 'social-share')}/)
|
||||
|
||||
expect(email).to have_body_text(proposal2.title)
|
||||
expect(email).to have_body_text(notification2.notifiable.title)
|
||||
expect(email).to have_body_text(notification2.notifiable.body)
|
||||
expect(email).to have_body_text(/#{notification_path(notification2)}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal2, anchor: 'tab-notifications')}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal2, anchor: 'comments')}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal2, anchor: 'social-share')}/)
|
||||
expect(email).to have_body_text(proposal2.author.name)
|
||||
|
||||
Reference in New Issue
Block a user