From a449e0193a47de6f44d26523dd58c0cc1d7c70e0 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Tue, 23 Apr 2019 13:37:05 +0200 Subject: [PATCH] Use match_array instead of eq This is the proper way to compare arrays --- spec/services/match_service_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/match_service_spec.rb b/spec/services/match_service_spec.rb index bdb844e..c4abdb9 100644 --- a/spec/services/match_service_spec.rb +++ b/spec/services/match_service_spec.rb @@ -88,7 +88,7 @@ RSpec.describe MatchService do team_order << score.team end end - expect(team_order).to eq(teams) + expect(team_order).to match_array(teams) end end