FEATURE: simpler and friendlier unsubscribe workflow

- All unsubscribes go to the exact same page
- You may unsubscribe from watching a category on that page
- You no longer need to be logged in to unsubscribe from a topic
- Simplified footer on emails
This commit is contained in:
Sam
2016-06-17 11:27:52 +10:00
parent 78818551ef
commit 852860de66
18 changed files with 499 additions and 234 deletions

View File

@ -187,8 +187,8 @@ describe Email::MessageBuilder do
expect(message_with_unsubscribe.header_args['List-Unsubscribe']).to be_present
end
it "has the user preferences url in the body" do
expect(message_with_unsubscribe.body).to match(builder.template_args[:user_preferences_url])
it "has the unsubscribe url in the body" do
expect(message_with_unsubscribe.body).to match('/t/1234/unsubscribe')
end
it "can add an unsubscribe via email link" do