From fa15ac0c3b9958b647d1e0eab182ce698d840ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 7 Sep 2021 14:46:10 +0200 Subject: [PATCH] Implement pending email digest test --- spec/system/emails_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/system/emails_spec.rb b/spec/system/emails_spec.rb index 2d15aebd7..1231106ef 100644 --- a/spec/system/emails_spec.rb +++ b/spec/system/emails_spec.rb @@ -304,6 +304,7 @@ describe "Emails" do notification2.reload expect(notification1.emailed_at).to be expect(notification2.emailed_at).to be + expect(email_digest.notifications).to be_empty end scenario "notifications moderated are not sent" do @@ -320,8 +321,6 @@ describe "Emails" do expect { open_last_email }.to raise_error "No email has been sent!" end - - xscenario "Delete all Notifications included in the digest after email sent" end context "User invites" do