1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added overtime_type to matches

This commit is contained in:
2022-09-13 11:31:35 +00:00
parent 645fb59e5b
commit 994fc18365
9 changed files with 47 additions and 14 deletions

View File

@@ -117,4 +117,13 @@ class MatchTest < ActiveSupport::TestCase
match.save
assert !match.valid?
end
test "Match should not be valid if an incorrect overtime_type is given" do
create_double_elim_tournament_single_weight(14, "Regular Double Elimination 1-8")
matches = @tournament.matches.reload
round1 = matches.select{|m| m.round == 1}
match = matches.first
match.overtime_type = "TEST"
match.save
assert !match.valid?
end
end