From 83381ad439135af1e908ab0ebbc369f189dc8716 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 12 May 2020 15:46:23 +0100 Subject: [PATCH] Relax array order verification --- spec/controllers/api/enterprises_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/api/enterprises_controller_spec.rb b/spec/controllers/api/enterprises_controller_spec.rb index ef21340e3f..54c5efc3b3 100644 --- a/spec/controllers/api/enterprises_controller_spec.rb +++ b/spec/controllers/api/enterprises_controller_spec.rb @@ -47,7 +47,7 @@ module Api expect(response).to be_success enterprise = Enterprise.last - expect(enterprise.user_ids).to eq([enterprise_owner.id, manager1.id, manager2.id]) + expect(enterprise.user_ids).to match_array([enterprise_owner.id, manager1.id, manager2.id]) end end end