From a65011467115269cf403480d6eafa49b6d55ab83 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 15 Feb 2024 11:00:53 +0100 Subject: [PATCH] test: fix flaky match_array test --- spec/models/zone_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/zone_spec.rb b/spec/models/zone_spec.rb index 24c11df25..5a5cb4489 100644 --- a/spec/models/zone_spec.rb +++ b/spec/models/zone_spec.rb @@ -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