FC ParticulierControllerSpec: simplify without an associate user

This commit is contained in:
Simon Lehericey 2018-01-16 14:30:37 +01:00
parent e1ac33f420
commit b2f59e2b14

View file

@ -59,11 +59,7 @@ describe FranceConnect::ParticulierController, type: :controller do
end
context 'when france_connect_particulier_id does not have an associate user' do
before do
get :callback, params: {code: code}
end
it {expect(response).to redirect_to(root_path)}
it { is_expected.to redirect_to(root_path) }
end
end