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