Check the length of the match positions instead of their exact content

This commit is contained in:
Daniel Schädler 2019-04-28 17:38:16 +02:00
parent fdac71a9f1
commit 88d8367c47
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ RSpec.describe GroupStageService do
it 'gives matches exclusive positions' do it 'gives matches exclusive positions' do
matches = GroupStageService.generate_all_matches_between(@teams2) matches = GroupStageService.generate_all_matches_between(@teams2)
match_positions = matches.map(&:position) match_positions = matches.map(&:position)
expect(match_positions).to eq(match_positions.uniq) expect(match_positions.length).to eq(match_positions.uniq.length)
end end
it 'doesn\'t match a team against itself' do it 'doesn\'t match a team against itself' do