Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

add a test for read_ian nil in unsent_reminders_before

Ivan Kuchind7cc239a0993
diff --git a/spec/models/notifications/scopes/unsent_reminders_before_spec.rb b/spec/models/notifications/scopes/unsent_reminders_before_spec.rb
index 0c0bb450822..6a9149cdb01 100644
--- a/spec/models/notifications/scopes/unsent_reminders_before_spec.rb
+++ b/spec/models/notifications/scopes/unsent_reminders_before_spec.rb
@@ -81,6 +81,14 @@ RSpec.describe Notifications::Scopes::UnsentRemindersBefore do
it { is_expected.to be_empty }
end
+ context "with a notification read mark set to nil" do
+ let(:notification_read_ian) { nil }
+
+ it "returns the notification" do
+ expect(scope).to contain_exactly(notification)
+ end
+ end
+
context "with a read notification" do
let(:notification_read_ian) { true }