It was failing when executed right before midnight due to the date changing between the moment the notification is created and the moment the test checks the notification shows the current date.
.all.each
.find_each