Merge pull request #6973 from tchak/fix-user-spec

test(user): fix unstable spec
This commit is contained in:
Paul Chavard 2022-02-18 17:06:10 +01:00 committed by GitHub
commit 59facd26f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)