mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Bulk clear reminders when the reminder is expired (#27220)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user