diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-08-02 01:49:21 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-08-02 01:49:21 +0400 |
commit | 3d88095ba2f934be92263275e3206b2cbfd47786 (patch) | |
tree | 9914572c70d4ae73ca86061e59e542aefce1daa6 /spec | |
parent | 983d4e55981af68e5c5810cfd3618403c58a40fb (diff) |
Updating batch inviter
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/rake_helper_spec.rb | 14 |
1 files changed, 3 insertions, 11 deletions
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 |