cannot create fci without user
This commit is contained in:
parent
8d0082419c
commit
e18fb116c6
1 changed files with 1 additions and 1 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue