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
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-09-01 18:25:54 +0300
committerRobert Speicher <robert@gitlab.com>2017-09-01 18:25:54 +0300
commitad32bac56de11aa75a41f4e88f28632c5ca0ff70 (patch)
tree5091f8ea7416e3fedc1ed5ae8bdb67a573367eb6 /spec/support
parent2bfeadd1b372d82b27a4059b7251e9b081f54b4c (diff)
parent5585ff3b8e780db589c1f18e398cf52cf4bf66e0 (diff)
Merge branch 'backstage/gb/optimize-notification-specs' into 'master'
Optimize notification emails specs See merge request !13986
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/notify_shared_examples.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/support/notify_shared_examples.rb b/spec/support/notify_shared_examples.rb
index 136f92c6419..e2c23607406 100644
--- a/spec/support/notify_shared_examples.rb
+++ b/spec/support/notify_shared_examples.rb
@@ -1,9 +1,10 @@
shared_context 'gitlab email notification' do
+ set(:project) { create(:project, :repository) }
+ set(:recipient) { create(:user, email: 'recipient@example.com') }
+
let(:gitlab_sender_display_name) { Gitlab.config.gitlab.email_display_name }
let(:gitlab_sender) { Gitlab.config.gitlab.email_from }
let(:gitlab_sender_reply_to) { Gitlab.config.gitlab.email_reply_to }
- let(:recipient) { create(:user, email: 'recipient@example.com') }
- let(:project) { create(:project) }
let(:new_user_address) { 'newguy@example.com' }
before do