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:
commit
c639268e74
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue