diff options
author | Sean McGivern <sean@gitlab.com> | 2019-06-21 14:39:49 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-06-21 14:39:49 +0000 |
commit | f318a14366a46e72a402402030ab809a2d4ee1ab (patch) | |
tree | cf00b643ef56f72e0585abc51d1c1f3317a4ab51 /spec/support | |
parent | 671d7cdc445b3a4fdbd2295996d149e833d6b6c2 (diff) | |
parent | df4c1a75dec4da15c38066ca73312ed91baeb782 (diff) | |
download | gitlab-ce-f318a14366a46e72a402402030ab809a2d4ee1ab.tar.gz |
Merge branch '58065-uniform-html-txt-email' into 'master'
Make HTML and text emails for new issues uniform and add the mail to mailer previews
Closes #58065
See merge request gitlab-org/gitlab-ce!29886
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared_examples/notify_shared_examples.rb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/spec/support/shared_examples/notify_shared_examples.rb b/spec/support/shared_examples/notify_shared_examples.rb index 897c9106d77..6894a63ce42 100644 --- a/spec/support/shared_examples/notify_shared_examples.rb +++ b/spec/support/shared_examples/notify_shared_examples.rb @@ -281,18 +281,8 @@ shared_examples 'a note email' do is_expected.to have_body_text note.note end - it 'does not contain note author' do - is_expected.not_to have_body_text note.author_name - end - - context 'when enabled email_author_in_body' do - before do - stub_application_setting(email_author_in_body: true) - end - - it 'contains a link to note author' do - is_expected.to have_body_text note.author_name - end + it 'contains a link to note author' do + is_expected.to have_body_text note.author_name end end |