Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHannes Rosenögger <123haynes@gmail.com>2015-03-11 08:41:58 +0300
committerHannes Rosenögger <123haynes@gmail.com>2015-03-11 08:41:58 +0300
commit94affe6d51f14b9a881a5e1d06c6c7e5d734f5bc (patch)
treece3fa32561ed369c6536d61bf0bef238d8d6f751 /spec
parentc572bdb587bada094af867839a60a26a1fc1423e (diff)
parent61ed518781cfc78bf1710286d84d4e74521f48d4 (diff)
Merge branch 'master' into 'master'
Make email display name configurable #216 See merge request !80
Diffstat (limited to 'spec')
-rw-r--r--spec/mailers/notify_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index 4090fa46205..b3c507ccbe2 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -5,6 +5,7 @@ describe Notify do
include EmailSpec::Matchers
include RepoHelpers
+ let(:gitlab_sender_display_name) { Gitlab.config.gitlab.email_display_name }
let(:gitlab_sender) { Gitlab.config.gitlab.email_from }
let(:recipient) { create(:user, email: 'recipient@example.com') }
let(:project) { create(:project) }
@@ -23,7 +24,7 @@ describe Notify do
shared_examples 'an email sent from GitLab' do
it 'is sent from GitLab' do
sender = subject.header[:from].addrs[0]
- expect(sender.display_name).to eq('GitLab')
+ expect(sender.display_name).to eq(gitlab_sender_display_name)
expect(sender.address).to eq(gitlab_sender)
end
end