SessionControllerSpec: small cleaning

This commit is contained in:
simon lehericey 2019-01-09 11:01:03 +01:00
parent f5fa0499ca
commit 9e26b5f4d8

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe Users::SessionsController, type: :controller do
let(:loged_in_with_france_connect) { User.loged_in_with_france_connects.fetch(:particulier) }
let(:user) { create(:user, loged_in_with_france_connect: loged_in_with_france_connect) }
@ -9,8 +7,6 @@ describe Users::SessionsController, type: :controller do
end
describe '#create' do
it { expect(described_class).to be < Sessions::SessionsController }
describe 'France Connect attribut' do
before do
post :create, params: { user: { email: user.email, password: user.password } }