Merge pull request #5888 from tchak/fix-unstable-tests

Fix unstable tests
This commit is contained in:
LeSim 2021-02-09 17:06:55 +01:00 committed by GitHub
commit b6d8409c9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -187,6 +187,7 @@ feature 'Instructing a dossier:' do
expect(files[2].filename.include?('horodatage/operation')).to be_truthy expect(files[2].filename.include?('horodatage/operation')).to be_truthy
end end
before { DownloadHelpers.clear_downloads }
after { DownloadHelpers.clear_downloads } after { DownloadHelpers.clear_downloads }
end end

View file

@ -38,7 +38,7 @@ describe 'new_administrateur/procedures/invited_expert_list.html.haml', type: :v
it 'has 2 experts and match array' do it 'has 2 experts and match array' do
expect(@invited_expert_emails.count).to eq(2) expect(@invited_expert_emails.count).to eq(2)
expect(@invited_expert_emails).to eq([expert.email, expert2.email]) expect(@invited_expert_emails).to eq([expert.email, expert2.email].sort)
end end
end end
end end