From 97c1ce54c137d6afbc58c99c6a5e7343ba5444b0 Mon Sep 17 00:00:00 2001 From: maxwell <maxwell@joindiaspora.com> Date: Mon, 6 Dec 2010 10:56:04 -0800 Subject: [PATCH] fixed the batch emailer tests... sorry it took me so long --- spec/lib/rake_helper_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/lib/rake_helper_spec.rb b/spec/lib/rake_helper_spec.rb index 6a1c673088..0997230673 100644 --- a/spec/lib/rake_helper_spec.rb +++ b/spec/lib/rake_helper_spec.rb @@ -15,14 +15,14 @@ describe RakeHelpers do end it 'should send emails to each backer' do Invitation.should_receive(:create_invitee).exactly(3).times - process_emails(@csv, 100, 1) + process_emails(@csv, 100, 1, 10, false) end it 'should not send the email to the same email twice' do - process_emails(@csv, 100, 1) + process_emails(@csv, 100, 1, 10, false) Devise.mailer.deliveries.count.should == 3 - process_emails(@csv, 100, 1) + process_emails(@csv, 100, 1, 10, false) Devise.mailer.deliveries.count.should == 3 end @@ -30,7 +30,7 @@ describe RakeHelpers do it 'should make a user with 10 invites' do User.count.should == 0 - process_emails(@csv, 1, 1) + process_emails(@csv, 1, 1, 10, false) User.count.should == 1 User.first.invites.should == 10 -- GitLab