Test generation of playoff stages for 1 2 and 3 teams

This commit is contained in:
Daniel Schädler 2019-04-18 14:18:17 +02:00
parent 8b11f73a58
commit d221928a12
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ RSpec.describe PlayoffStageService do
describe 'generates playoff stages for' do
[
{ team_size: 1, expected_amount_of_playoff_stages: 1 },
{ team_size: 2, expected_amount_of_playoff_stages: 1 },
{ team_size: 3, expected_amount_of_playoff_stages: 2 },
{ team_size: 4, expected_amount_of_playoff_stages: 2 },
{ team_size: 8, expected_amount_of_playoff_stages: 3 },
{ team_size: 9, expected_amount_of_playoff_stages: 4 },