summaryrefslogtreecommitdiff
path: root/spec/mailers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-08 01:06:38 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-08 01:06:38 -0800
commit8c12c93e07c536940fc63bf3c5ae824e96d43661 (patch)
treeec4bdaae9db949fa4dc70fb68ea187dfee77456f /spec/mailers
parent64673acf9f75cb29d665553ba58ffb2046012eeb (diff)
parent36b255e57bae0dbfbb0e1767713bdd713c48d622 (diff)
downloadgitlab-ce-8c12c93e07c536940fc63bf3c5ae824e96d43661.tar.gz
Merge pull request #8749 from sashkab/b8748-emailheader
Addex X-GitLab-Project header to GitLab emails.
Diffstat (limited to 'spec/mailers')
-rw-r--r--spec/mailers/notify_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index 5af622f946e..c045f85052c 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -31,6 +31,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
@@ -42,6 +43,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