Merge pull request #9997 from colinux/fix-flaky

Tech: fix flaky match_array test
This commit is contained in:
Paul Chavard 2024-02-15 11:15:12 +00:00 committed by GitHub
commit 429c7f43fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,7 @@ describe Zone do
describe "#self.default_for" do
it 'returns zone related to tchap hs' do
expect(Zone.default_for('agent.education.tchap.gouv.fr').map(&:acronym)).to eq ['MEN', 'ESR']
expect(Zone.default_for('agent.education.tchap.gouv.fr').map(&:acronym)).to match_array(['MEN', 'ESR'])
expect(Zone.default_for('agent.tchap.gouv.fr').map(&:acronym)).to eq []
end
end