From fb41cd783cc66079774f29e52ba052c70d02bfef Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:16:14 +0100 Subject: [PATCH] Update test: not test the order when we just want to test presence --- spec/models/organisation_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb index 2bd93c229..fe919a336 100644 --- a/spec/models/organisation_spec.rb +++ b/spec/models/organisation_spec.rb @@ -132,7 +132,7 @@ RSpec.describe Organisation, type: :model do context "when the org does not use all rent periods" do it "#rent_periods returns the correct ids" do - expect(organisation.rent_periods).to eq [4, 2, 1] + expect(organisation.rent_periods).to match_array([4, 2, 1]) end it "#rent_period_labels returns the correct labels in order" do @@ -156,7 +156,7 @@ RSpec.describe Organisation, type: :model do end it "#rent_periods returns the correct ids" do - expect(organisation.rent_periods).to eq [4, 2, 1, 3] + expect(organisation.rent_periods).to match_array([4, 2, 1, 3]) end it "#rent_period_labels returns All" do