diff options
Diffstat (limited to 'spec/lib/rake_helper_spec.rb')
-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 |