diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-07-10 15:25:24 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-07-10 15:25:24 +0300 |
commit | 6152d7a33e177f8b656f104a7e7d93c3a5562394 (patch) | |
tree | 9ba792c526c224b8dc10c100f69f55cf73798b7f /spec | |
parent | 1f5260719813a5d80a2f0d58430e37e8d3e99587 (diff) | |
parent | 220f37a02bb009ae3fb3ee1d442e6a9105f1729d (diff) |
Merge branch 'ce-6117-unify-preview-mailer' into 'master'
CE: Resolve "Extract EE specific files/lines for spec/mailers, app/mailers/preview"
See merge request gitlab-org/gitlab-ce!20508
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mailers/notify_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index a9a45367b4a..effbfb1ba84 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -314,6 +314,17 @@ describe Notify do end end + describe 'that are new with a description' do + subject { described_class.new_merge_request_email(merge_request.assignee_id, merge_request.id) } + + it_behaves_like 'it should show Gmail Actions View Merge request link' + it_behaves_like "an unsubscribeable thread" + + it 'contains the description' do + is_expected.to have_body_text(merge_request.description) + end + end + describe 'that have been relabeled' do subject { described_class.relabeled_merge_request_email(recipient.id, merge_request.id, %w[foo bar baz], current_user.id) } |