diff options
author | Stan Hu <stanhu@gmail.com> | 2015-10-01 11:44:50 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-10-01 11:46:08 +0300 |
commit | 2e92600b30b4e935fb8ba125d99124539545d901 (patch) | |
tree | 21b3e57cbad2664fe2d9cace6e77fb4d62af4aa2 /spec/mailers | |
parent | 2714d5b8147cef39343a1c35ba099ebe6445f5e4 (diff) |
Fix Message-ID field to be RFC 2111-compliant to prevent e-mails from being dropped
Closes #2867
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/notify_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index 2c97a521d96..f219af67ffe 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -52,6 +52,7 @@ describe Notify do end it 'has headers that reference an existing thread' do + is_expected.to have_header 'Message-ID', /<(.*)@#{Gitlab.config.gitlab.host}>/ is_expected.to have_header 'References', /<#{thread_id_prefix}(.*)@#{Gitlab.config.gitlab.host}>/ is_expected.to have_header 'In-Reply-To', /<#{thread_id_prefix}(.*)@#{Gitlab.config.gitlab.host}>/ is_expected.to have_header 'X-GitLab-Project', /#{project.name}/ |