summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-07-10 01:49:50 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-07-10 01:49:50 +0800
commit220f37a02bb009ae3fb3ee1d442e6a9105f1729d (patch)
treea8f4513eb6ed8cdf1d1a0c40bd59e4c5d0bd84f7
parent3edda4c257d49014ad8bbd2c77646bb9a35cb756 (diff)
downloadgitlab-ce-220f37a02bb009ae3fb3ee1d442e6a9105f1729d.tar.gz
This test was copied from EE
-rw-r--r--spec/mailers/notify_spec.rb11
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) }