diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-28 16:17:41 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-29 09:41:57 +0800 |
commit | 55d0df7a9f106687a2a252cf70b403bfebb9942c (patch) | |
tree | 1af2b4d710a7d0b77a9e950be8c05a8b2bab8d5c /spec/mailers | |
parent | b34120336d33e57d9817559f82771f8da4f5f2b3 (diff) | |
download | gitlab-ce-55d0df7a9f106687a2a252cf70b403bfebb9942c.tar.gz |
Fix issue due notification emails threading66524-issue-due-notification-emails-are-threaded-incorrectly
It should not be a start to a new thread but rather
a reply to an existing thread
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/notify_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index 6cba7df114c..56fa26d5f23 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -187,6 +187,22 @@ describe Notify do end end + describe 'that are due soon' do + subject { described_class.issue_due_email(recipient.id, issue.id) } + + before do + issue.update(due_date: Date.tomorrow) + end + + it_behaves_like 'an answer to an existing thread with reply-by-email enabled' do + let(:model) { issue } + end + it_behaves_like 'it should show Gmail Actions View Issue link' + it_behaves_like 'an unsubscribeable thread' + it_behaves_like 'appearance header and footer enabled' + it_behaves_like 'appearance header and footer not enabled' + end + describe 'status changed' do let(:status) { 'closed' } subject { described_class.issue_status_changed_email(recipient.id, issue.id, status, current_user.id) } |