-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename
unsubscribe_link
to one_click_unsubscribe_url
- Loading branch information
Showing
4 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,7 @@ def test_send_email_endpoint(client) | |
personalisation: { "name" => "some name" }, | ||
reference: "some reference", | ||
email_reply_to_id: ENV['EMAIL_REPLY_TO_ID'], | ||
unsubscribe_link: "https://www.clovercouncil.gov.uk/[email protected]" | ||
one_click_unsubscribe_url: "https://www.clovercouncil.gov.uk/[email protected]" | ||
) | ||
test_notification_response_data_type(email_resp, 'email') | ||
email_resp | ||
|
@@ -134,7 +134,7 @@ def test_send_email_endpoint_with_document(client) | |
personalisation: { name: Notifications.prepare_upload(f) }, | ||
reference: "some reference", | ||
email_reply_to_id: ENV['EMAIL_REPLY_TO_ID'], | ||
unsubscribe_link: "https://www.clovercouncil.gov.uk/[email protected]") | ||
one_click_unsubscribe_url: "https://www.clovercouncil.gov.uk/[email protected]") | ||
end | ||
|
||
test_notification_response_data_type(email_resp, 'email') | ||
|
@@ -324,7 +324,7 @@ def expected_fields_in_email_content | |
%w(from_email | ||
body | ||
subject | ||
unsubscribe_link) | ||
one_click_unsubscribe_url) | ||
end | ||
|
||
def expected_fields_in_sms_content | ||
|
@@ -348,7 +348,7 @@ def expected_fields_in_email_notification | |
body | ||
subject | ||
created_at | ||
unsubscribe_link) | ||
one_click_unsubscribe_url) | ||
end | ||
|
||
def expected_fields_in_email_notification_that_are_nil | ||
|
@@ -388,7 +388,7 @@ def expected_fields_in_sms_notification_that_are_nil | |
subject | ||
created_by_name | ||
postage | ||
unsubscribe_link) | ||
one_click_unsubscribe_url) | ||
end | ||
|
||
def expected_fields_in_letter_notification | ||
|
@@ -417,7 +417,7 @@ def expected_fields_in_letter_notification_that_are_nil | |
line_5 | ||
line_6 | ||
created_by_name | ||
unsubscribe_link | ||
one_click_unsubscribe_url | ||
) | ||
end | ||
|
||
|
@@ -449,7 +449,7 @@ def expected_fields_in_precompiled_letter_notification_that_are_nil | |
phone_number | ||
postcode | ||
sent_at | ||
unsubscribe_link | ||
one_click_unsubscribe_url | ||
) | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters