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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user