FC ParticulierControllerSpec: one liner expectation

This commit is contained in:
Simon Lehericey 2018-01-16 14:09:32 +01:00
parent 4008d8e44d
commit ab02f796b3

View file

@ -44,9 +44,7 @@ describe FranceConnect::ParticulierController, type: :controller do
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 { expect { subject }.not_to change { FranceConnectInformation.count } }
context 'when france_connect_particulier_id have an associate user' do
before do