Skip to content
Extraits de code Groupes Projets
Valider be553846 rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Add pending spec to invitations

parent 47dc91fa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -122,6 +122,12 @@ describe Invitation do
Invitation.create_invitee(:email => @email)
Devise.mailer.deliveries.first.body.raw_source.match(/have invited you to join/i).should be_false
end
it 'creates an invitation' do
pending "Invitations should be more flexible, allowing custom messages to be passed in without an inviter."
lambda {
Invitation.create_invitee(:email => @email)
}.should change(Invitation, :count).by(1)
end
end
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter