summaryrefslogtreecommitdiff
path: root/spec/mailers/shared
diff options
context:
space:
mode:
authorDavid Padilla <david@easybroker.com>2016-02-29 23:29:20 -0600
committerRémy Coutable <remy@rymai.me>2016-03-25 13:05:15 +0100
commit31e76baf610e1307090a6bac3a7b3d525bce057a (patch)
tree6381eb0aa46cdfb646f93aaa1bfd7b8e5d881333 /spec/mailers/shared
parent63c8a05bf7f18ac4093ece1f08b4b5fd8dba5fac (diff)
downloadgitlab-ce-31e76baf610e1307090a6bac3a7b3d525bce057a.tar.gz
Fix #2364. Fall back to In-Reply-To header when reply key not available
Diffstat (limited to 'spec/mailers/shared')
-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 6019af544d3..eafc5e5044b 100644
--- a/spec/mailers/shared/notify.rb
+++ b/spec/mailers/shared/notify.rb
@@ -50,7 +50,8 @@ shared_examples 'an email starting a new thread' do |message_id_prefix|
include_examples 'an email with X-GitLab headers containing project details'
it 'has a discussion identifier' do
- is_expected.to have_header 'Message-ID', /<#{message_id_prefix}(.*)@#{Gitlab.config.gitlab.host}>/
+ is_expected.to have_header 'Message-ID', /<reply\+(.*)@#{Gitlab.config.gitlab.host}>/
+ is_expected.to have_header 'References', /<#{message_id_prefix}(.*)@#{Gitlab.config.gitlab.host}>/
end
end