cannot create fci without user

This commit is contained in:
simon lehericey 2021-04-26 16:26:42 +02:00
parent 8d0082419c
commit e18fb116c6

View file

@ -9,7 +9,7 @@ describe FranceConnectInformation, type: :model do
describe 'associate_user!' do
context 'when there is no user with same email' do
let(:fci) { create(:france_connect_information) }
let(:fci) { build(:france_connect_information) }
let(:subject) { fci.associate_user! }
it { expect { subject }.to change(User, :count).by(1) }