test: fix flaky match_array test

This commit is contained in:
Colin Darie 2024-02-15 11:00:53 +01:00
parent d3ef2cae69
commit a650114671
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

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