From 215e44d264517e3a60ea9142be76bb8d84d5016e Mon Sep 17 00:00:00 2001 From: baarkerlounger <5101747+baarkerlounger@users.noreply.github.com> Date: Fri, 20 May 2022 12:24:51 +0100 Subject: [PATCH] Fix heisenspec (order independent array comparison) (#596) --- spec/models/user_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index b639b9547..8863f3bc4 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -120,7 +120,7 @@ RSpec.describe User, type: :model do let!(:other_orgs_log) { FactoryBot.create(:case_log) } it "has access to logs from all organisations" do - expect(user.case_logs.to_a).to eq([owned_case_log, managed_case_log, other_orgs_log]) + expect(user.case_logs.to_a).to match_array([owned_case_log, managed_case_log, other_orgs_log]) end it "requires 2FA" do