diff options
author | Aleks Bunin <github@compuix.com> | 2015-02-07 12:35:50 -0500 |
---|---|---|
committer | Aleks Bunin <github@compuix.com> | 2015-02-07 12:35:50 -0500 |
commit | 36b255e57bae0dbfbb0e1767713bdd713c48d622 (patch) | |
tree | b23680b81fb6230cf54a70d8b8462ec4b27abc21 /spec/mailers | |
parent | 5bf33f977c16757dbf669fe2b25b09da406508dd (diff) | |
download | gitlab-ce-36b255e57bae0dbfbb0e1767713bdd713c48d622.tar.gz |
Addex X-GitLab-Project header to GitLab emails.
Fixes #8748.
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/notify_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index a0c37587b23..a66c986148e 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -26,6 +26,7 @@ describe Notify do shared_examples 'an email starting a new thread' do |message_id_prefix| it 'has a discussion identifier' do should have_header 'Message-ID', /<#{message_id_prefix}(.*)@#{Gitlab.config.gitlab.host}>/ + should have_header 'X-GitLab-Project', /#{project.name}/ end end @@ -37,6 +38,7 @@ describe Notify do it 'has headers that reference an existing thread' do should have_header 'References', /<#{thread_id_prefix}(.*)@#{Gitlab.config.gitlab.host}>/ should have_header 'In-Reply-To', /<#{thread_id_prefix}(.*)@#{Gitlab.config.gitlab.host}>/ + should have_header 'X-GitLab-Project', /#{project.name}/ end end |