Merge pull request #6188 from adullact/6187_fix_spec_api-entreprise_exercices-job

#6187 - Fix(API Entreprise): test fails randomly
This commit is contained in:
LeSim 2021-05-10 11:17:01 +02:00 committed by GitHub
commit c639268e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,7 @@ RSpec.describe APIEntreprise::ExercicesJob, type: :job do
it 'updates etablissement' do
subject
expect(Etablissement.find(etablissement.id).exercices[0].ca).to eq('21009417')
ca_list = Etablissement.find(etablissement.id).exercices.map(&:ca)
expect(ca_list).to contain_exactly('21009417', '18968298', '17768838')
end
end