summaryrefslogtreecommitdiff
path: root/spec/mailers
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-10-01 01:44:50 -0700
committerStan Hu <stanhu@gmail.com>2015-10-01 01:46:08 -0700
commit2e92600b30b4e935fb8ba125d99124539545d901 (patch)
tree21b3e57cbad2664fe2d9cace6e77fb4d62af4aa2 /spec/mailers
parent2714d5b8147cef39343a1c35ba099ebe6445f5e4 (diff)
downloadgitlab-ce-2e92600b30b4e935fb8ba125d99124539545d901.tar.gz
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.rb1
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}/