Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRaphael Sofaer <raphael@joindiaspora.com>2011-08-02 01:49:21 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-08-02 01:49:21 +0400
commit3d88095ba2f934be92263275e3206b2cbfd47786 (patch)
tree9914572c70d4ae73ca86061e59e542aefce1daa6 /spec
parent983d4e55981af68e5c5810cfd3618403c58a40fb (diff)
Updating batch inviter
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/rake_helper_spec.rb14
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