Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2019-08-29 13:48:15 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2019-08-29 13:48:15 +0300
commit1c687f7f219f913965d713994ae0dddb2682eef4 (patch)
tree2e4b30c2d6a7b36e47a5fa13792ad02d0a4c1126 /spec
parentad666a697bdd3615183d7e2224cecf85f4d6def5 (diff)
parent55d0df7a9f106687a2a252cf70b403bfebb9942c (diff)
Merge branch '66524-issue-due-notification-emails-are-threaded-incorrectly' into 'master'
Resolve "Issue due notification emails are threaded incorrectly" See merge request gitlab-org/gitlab-ce!32325
Diffstat (limited to 'spec')
-rw-r--r--spec/mailers/notify_spec.rb16
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) }