summaryrefslogtreecommitdiff
path: root/spec/mailers
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-09-25 17:06:09 +0100
committerSean McGivern <sean@gitlab.com>2016-09-26 16:01:17 +0100
commit20de47235e39e585ac1c8746fc9c4f673da910a0 (patch)
tree0851be1e2ce9dedc4e46f5e89b5137e3925f38cd /spec/mailers
parentc8d92f95954dd37e50af8d7a91271566f00cb25b (diff)
downloadgitlab-ce-20de47235e39e585ac1c8746fc9c4f673da910a0.tar.gz
Wrap List-Unsubscribe link in angle bracketsfix-unsubscribe-header
Diffstat (limited to 'spec/mailers')
-rw-r--r--spec/mailers/shared/notify.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/mailers/shared/notify.rb b/spec/mailers/shared/notify.rb
index 56872da9a8f..5c9851f14c7 100644
--- a/spec/mailers/shared/notify.rb
+++ b/spec/mailers/shared/notify.rb
@@ -169,8 +169,9 @@ shared_examples 'it should show Gmail Actions View Commit link' do
end
shared_examples 'an unsubscribeable thread' do
- it 'has a List-Unsubscribe header' do
+ it 'has a List-Unsubscribe header in the correct format' do
is_expected.to have_header 'List-Unsubscribe', /unsubscribe/
+ is_expected.to have_header 'List-Unsubscribe', /^<.+>$/
end
it { is_expected.to have_body_text /unsubscribe/ }