test(user): fix unstable spec

This commit is contained in:
Paul Chavard 2022-02-17 14:35:29 +01:00
parent 4e10c04a1a
commit 50f095a5c6

View file

@ -433,7 +433,7 @@ describe User, type: :model do
it 'transfers the dossier' do
subject
expect(targeted_user.dossiers.with_discarded).to match([dossier, hidden_dossier])
expect(targeted_user.dossiers.with_discarded).to contain_exactly(dossier, hidden_dossier)
expect(targeted_user.invites).to match([invite])
expect(targeted_user.merge_logs.first).to eq(merge_log)