Merge pull request #6497 from betagouv/fix_flaky_spec

Correction d'un échec aléatoire dans un test des transferts de dossier (#6497)
This commit is contained in:
Pierre de La Morinerie 2021-09-28 16:04:04 +02:00 committed by GitHub
commit d5fad5c76e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ describe Users::ProfilController, type: :controller do
it "transfer all dossiers" do
expect(created_transfer.email).to eq(next_owner)
expect(created_transfer.dossiers).to eq(dossiers)
expect(created_transfer.dossiers).to match_array(dossiers)
expect(flash.notice).to eq("Le transfert de 3 dossiers à #{next_owner} est en cours")
end
end