From 88d8367c472ab30be568783f91f34e0d117920a4 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Sun, 28 Apr 2019 17:38:16 +0200 Subject: [PATCH] Check the length of the match positions instead of their exact content --- spec/services/group_stage_service_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/group_stage_service_spec.rb b/spec/services/group_stage_service_spec.rb index a6b97c4..6b82724 100644 --- a/spec/services/group_stage_service_spec.rb +++ b/spec/services/group_stage_service_spec.rb @@ -57,7 +57,7 @@ RSpec.describe GroupStageService do it 'gives matches exclusive positions' do matches = GroupStageService.generate_all_matches_between(@teams2) match_positions = matches.map(&:position) - expect(match_positions).to eq(match_positions.uniq) + expect(match_positions.length).to eq(match_positions.uniq.length) end it 'doesn\'t match a team against itself' do