FIX: Bulk clear reminders when the reminder is expired (#27220)

This commit is contained in:
Jan Cernik
2024-05-28 10:21:33 -03:00
committed by GitHub
parent caa29ec973
commit 76c56c8284
3 changed files with 6 additions and 2 deletions

View File

@@ -44,7 +44,9 @@ RSpec.describe BookmarksBulkAction do
expect do
bba = BookmarksBulkAction.new(user, [bookmark_with_reminder.id], type: "clear_reminder")
bba.perform!
end.to change { Bookmark.find_by_id(bookmark_with_reminder.id).reminder_set_at }.to(nil)
end.to change { Bookmark.find_by_id(bookmark_with_reminder.id).reminder_set_at }.to(
nil,
).and change { Bookmark.find_by_id(bookmark_with_reminder.id).reminder_at }.to(nil)
end
end
end