Fix ServicesController spec
This commit is contained in:
parent
a5ab8a80d8
commit
a74080e27d
2 changed files with 2 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue