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

Fix ServicesController spec

parent a5ab8a80
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -27,4 +27,3 @@
%br
%h4
= link_to t('services.index.connect_to_facebook'), '/auth/facebook'
......@@ -99,7 +99,7 @@ describe ServicesController do
it 'has no translations missing' do
get :finder, :provider => @service1.provider
response.body.match(/translation/).should be_nil
Nokogiri(response.body).css('.translation_missing').should be_empty
end
end
......@@ -119,16 +119,6 @@ describe ServicesController do
put :inviter, @invite_params
end
it 'sets the subject' do
put :inviter, @invite_params
assigns[:subject].should_not be_nil
end
it 'sets a message containing the invitation link' do
put :inviter, @invite_params
assigns[:message].should include(User.last.invitation_token)
end
it 'redirects to a prefilled facebook message url' do
put :inviter, @invite_params
response.location.should match(/https:\/\/www\.facebook\.com\/\?compose=1&id=.*&subject=.*&message=.*&sk=messages/)
......@@ -156,7 +146,7 @@ describe ServicesController do
}.should_not change(Invitation, :count)
end
it 'disregares the amount of invites if open_invitations are enabled' do
it 'disregards the amount of invites if open_invitations are enabled' do
open_bit = AppConfig[:open_invitations]
AppConfig[:open_invitations] = true
......
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