summaryrefslogtreecommitdiff
path: root/spec/support/notify_shared_examples.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-03-21 16:07:52 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-03-21 16:07:52 -0400
commit4abca08f145aea1f8647fc43d9d226161e44fc07 (patch)
treec478a773f3ac45dac3be6b490de334de5aaac394 /spec/support/notify_shared_examples.rb
parent45a2f9009bca7a2ba86688f1cf3945dde4381c77 (diff)
downloadgitlab-ce-4abca08f145aea1f8647fc43d9d226161e44fc07.tar.gz
Move the `a new user email` shared example to the Emails::Profile spec
This shared example was only used by this spec so having it in a separate file provided no benefit, at the cost of clarity. This also reduces the three `it` blocks into a single test with `aggregate_failures`.
Diffstat (limited to 'spec/support/notify_shared_examples.rb')
-rw-r--r--spec/support/notify_shared_examples.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/support/notify_shared_examples.rb b/spec/support/notify_shared_examples.rb
index a3724b801b3..0dc6af768a4 100644
--- a/spec/support/notify_shared_examples.rb
+++ b/spec/support/notify_shared_examples.rb
@@ -136,20 +136,6 @@ shared_examples 'an answer to an existing thread with reply-by-email enabled' do
end
end
-shared_examples 'a new user email' do
- it 'is sent to the new user' do
- is_expected.to deliver_to new_user_address
- end
-
- it 'has the correct subject' do
- is_expected.to have_subject /^Account was created for you$/i
- end
-
- it 'contains the new user\'s login name' do
- is_expected.to have_body_text /#{new_user_address}/
- end
-end
-
shared_examples 'it should have Gmail Actions links' do
it { is_expected.to have_body_text '<script type="application/ld+json">' }
it { is_expected.to have_body_text /ViewAction/ }