Skip to content
Extraits de code Groupes Projets
Valider 52908cec rédigé par maxwell's avatar maxwell
Parcourir les fichiers

services controller should now go back to the referer. this might not actually work

parent 3fd5852d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -32,7 +32,7 @@ class ServicesController < ApplicationController
end
flash[:notice] = I18n.t 'services.create.success'
redirect_to services_url
redirect_to :back
end
def destroy
......
......@@ -36,6 +36,7 @@ describe ServicesController do
describe '#create' do
it 'creates a new OmniauthService' do
request.env['omniauth.auth'] = omniauth_auth
request.env["HTTP_REFERER"] = ""
lambda{post :create}.should change(user.services, :count).by(1)
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