1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-01 20:25:26 +00:00

Moved a number of tests away from fixtures

This commit is contained in:
2019-04-19 11:53:59 -04:00
parent 1dfceda422
commit ff749df11d
6 changed files with 30 additions and 92 deletions

View File

@@ -2,11 +2,10 @@ require 'test_helper'
class EightPoolToFourPoolChangesTest < ActionDispatch::IntegrationTest
def setup
@tournament = Tournament.find(4)
create_pool_tournament_single_weight(24)
end
test "All wrestlers get matches after a weight switches from 8 pool to 4 pool" do
GenerateTournamentMatches.new(@tournament).generate
assert @tournament.matches.count == 36
assert @tournament.weights.first.pools == 8
count = 1