FC ParticulierControllerSpec: remove unless context

This commit is contained in:
Simon Lehericey 2018-01-16 14:03:05 +01:00
parent 28bf45e536
commit 4008d8e44d

View file

@ -42,13 +42,11 @@ describe FranceConnect::ParticulierController, type: :controller do
context 'when france_connect_particulier_id exist in database' do
let!(:france_connect_information) { create(:france_connect_information, france_connect_particulier_id: france_connect_particulier_id, given_name: given_name, family_name: family_name, birthdate: birthdate, gender: gender, birthplace: birthplace) }
context {
subject { get :callback, params: {code: code} }
subject { get :callback, params: {code: code} }
it 'does not create a new france_connect_information in database' do
expect { subject }.not_to change { FranceConnectInformation.count }
end
}
it 'does not create a new france_connect_information in database' do
expect { subject }.not_to change { FranceConnectInformation.count }
end
context 'when france_connect_particulier_id have an associate user' do
before do