mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 22:03:49 +00:00
Tested mat assignment during match generation
This commit is contained in:
BIN
db/.schema.rb.swp
Normal file
BIN
db/.schema.rb.swp
Normal file
Binary file not shown.
BIN
test/integration/.poolbracket_matchups_test.rb.swp
Normal file
BIN
test/integration/.poolbracket_matchups_test.rb.swp
Normal file
Binary file not shown.
@@ -244,4 +244,9 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
|||||||
assert_equal "Winner Pool 2", @semi_bouts.second.loser1_name
|
assert_equal "Winner Pool 2", @semi_bouts.second.loser1_name
|
||||||
assert_equal "Runner Up Pool 1", @semi_bouts.second.loser2_name
|
assert_equal "Runner Up Pool 1", @semi_bouts.second.loser2_name
|
||||||
end
|
end
|
||||||
|
test 'test mat assignment after match generation' do
|
||||||
|
@matches = @tournament.matches.order(:bout_number)
|
||||||
|
assert_equal 'Mat1', @matches.first.mat.name
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user