diff --git a/app/views/services/finder.html.haml b/app/views/services/finder.html.haml index 53d86ab95bb50dd5c84b07ae21bb80b02fae3590..e76190e31f1323068d32673db3499e557e713150 100644 --- a/app/views/services/finder.html.haml +++ b/app/views/services/finder.html.haml @@ -27,4 +27,3 @@ %br %h4 = link_to t('services.index.connect_to_facebook'), '/auth/facebook' - diff --git a/spec/controllers/services_controller_spec.rb b/spec/controllers/services_controller_spec.rb index 8012c880c7a0a59e0643b8e6cc80ff3572ff61a3..289e63f32237d4bfd368efff71648aaa394d7a98 100644 --- a/spec/controllers/services_controller_spec.rb +++ b/spec/controllers/services_controller_spec.rb @@ -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