FC ParticulierControllerSpec: simplier auth spec
This commit is contained in:
parent
02dd1e209c
commit
9b6b6bde97
1 changed files with 4 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue