From 3d88095ba2f934be92263275e3206b2cbfd47786 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Mon, 1 Aug 2011 14:49:21 -0700 Subject: Updating batch inviter --- spec/lib/rake_helper_spec.rb | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'spec') diff --git a/spec/lib/rake_helper_spec.rb b/spec/lib/rake_helper_spec.rb index f78ee923f..6f2b6d40b 100644 --- a/spec/lib/rake_helper_spec.rb +++ b/spec/lib/rake_helper_spec.rb @@ -15,25 +15,17 @@ 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, 10, false) + process_emails(@csv, 100, 1, false) end it 'should not send the email to the same email twice' do - process_emails(@csv, 100, 1, 10, false) + process_emails(@csv, 100, 1, false) Devise.mailer.deliveries.count.should == 3 - process_emails(@csv, 100, 1, 10, false) + process_emails(@csv, 100, 1, false) Devise.mailer.deliveries.count.should == 3 end - - it 'should make a user with 10 invites' do - lambda { - process_emails(@csv, 1, 1, 10, false) - }.should change(User, :count).by(1) - - User.last.invites.should == 10 - end end end -- cgit v1.2.3