FC ParticulierControllerSpec: use controller to store_location

This commit is contained in:
Simon Lehericey 2018-01-16 14:01:26 +01:00
parent ab116895b7
commit 28bf45e536

View file

@ -66,7 +66,7 @@ describe FranceConnect::ParticulierController, type: :controller do
end
it 'redirect to stored location' do
subject.store_location_for(:user, stored_location)
controller.store_location_for(:user, stored_location)
get :callback, params: {code: code}
expect(response).to redirect_to(stored_location)