Et avec Fred qui doit renouveller sa cotisation d'ici 10 jours
     Et avec Moly qui doit renouveller sa cotisation d'ici 30 jours
     Lorsque j'exécute send-membership-reminders
-    Alors 4 emails doivent avoir été envoyés
+    Alors des emails doivent avoir été envoyés à Jane, Fatima, Fred et Moly
 
   Mail::TestMailer.deliveries.should have(count).email
 end
 
+Then /^des emails doivent avoir été envoyés à Jane, Fatima, Fred et Moly$/ do
+  recipients = Mail::TestMailer.deliveries.collect(&:to)
+  recipients.should include(['jane@example.org'])
+  recipients.should include(['fatima@example.org'])
+  recipients.should include(['fred@example.org'])
+  recipients.should include(['moly@example.org'])
+end
+
 Then /^un email doit avoir été envoyé au comité de déontologie$/ do
   expect(Mail::TestMailer.deliveries).to have(1).email
   expect(Mail::TestMailer.deliveries.first.to).to include('deontologie@nos-oignons.net')
 
                                member.joined_on.day).to_date
         next if member.membership_fee_paid_on >= anniversary
         next if member.reminded_on && member.reminded_on >= today
-        NosOignons::Reminder.all.sort_by(&:days).reverse.each do |reminder|
+        reminders = NosOignons::Reminder.all.sort_by(&:days).reverse
+        next if anniversary > today + reminders.first.days
+        reminders.each do |reminder|
           next if anniversary < today + reminder.days
 
           member.remind(reminder)