FC ParticulierControllerSpec: simplier auth spec

This commit is contained in:
simon lehericey 2018-01-16 13:37:38 +01:00 committed by Simon Lehericey
parent 02dd1e209c
commit 9b6b6bde97

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe FranceConnect::ParticulierController, type: :controller do describe FranceConnect::ParticulierController, type: :controller do
let(:code) { 'plop' } let(:code) { 'plop' }
let(:given_name) { 'titi' } let(:given_name) { 'titi' }
@ -12,11 +10,10 @@ describe FranceConnect::ParticulierController, type: :controller do
let(:user_info) { { france_connect_particulier_id: france_connect_particulier_id, given_name: given_name, family_name: family_name, birthdate: birthdate, birthplace: birthplace, gender: gender, email_france_connect: email } } let(:user_info) { { france_connect_particulier_id: france_connect_particulier_id, given_name: given_name, family_name: family_name, birthdate: birthdate, birthplace: birthplace, gender: gender, email_france_connect: email } }
describe '.auth' do describe '#auth' do
it 'redirect to france connect serveur' do subject { get :login }
get :login
expect(response.status).to eq(302) it { is_expected.to have_http_status(:redirect) }
end
end end
describe '.callback' do describe '.callback' do