summaryrefslogtreecommitdiff
path: root/spec/support/notify_shared_examples.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-03-21 16:10:03 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-03-21 16:10:03 -0400
commit6fb81afe98b6433364c152c5e6f76486cea5fa19 (patch)
treeaf845aa4d01b2b708f1d307fda596b330650a4e7 /spec/support/notify_shared_examples.rb
parent4abca08f145aea1f8647fc43d9d226161e44fc07 (diff)
downloadgitlab-ce-6fb81afe98b6433364c152c5e6f76486cea5fa19.tar.gz
Remove the 'custom subject suffix' spec from a shared example
This one-off test case is covered in the Notify mailer spec, so there was no benefit in testing it every time this shared example was referenced.
Diffstat (limited to 'spec/support/notify_shared_examples.rb')
-rw-r--r--spec/support/notify_shared_examples.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/support/notify_shared_examples.rb b/spec/support/notify_shared_examples.rb
index 0dc6af768a4..7ed2abb6aa2 100644
--- a/spec/support/notify_shared_examples.rb
+++ b/spec/support/notify_shared_examples.rb
@@ -37,16 +37,6 @@ shared_examples 'an email sent from GitLab' do
reply_to = subject.header[:reply_to].addresses
expect(reply_to).to eq([gitlab_sender_reply_to])
end
-
- context 'when custom suffix for email subject is set' do
- before do
- stub_config_setting(email_subject_suffix: 'A Nice Suffix')
- end
-
- it 'ends the subject with the suffix' do
- is_expected.to have_subject /\ \| A Nice Suffix$/
- end
- end
end
shared_examples 'an email that contains a header with author username' do