diff --git a/db/.schema.rb.swp b/db/.schema.rb.swp new file mode 100644 index 0000000..ffe0897 Binary files /dev/null and b/db/.schema.rb.swp differ diff --git a/test/integration/.poolbracket_matchups_test.rb.swp b/test/integration/.poolbracket_matchups_test.rb.swp new file mode 100644 index 0000000..d5cf755 Binary files /dev/null and b/test/integration/.poolbracket_matchups_test.rb.swp differ diff --git a/test/integration/poolbracket_matchups_test.rb b/test/integration/poolbracket_matchups_test.rb index 3e338a3..c1d51a4 100644 --- a/test/integration/poolbracket_matchups_test.rb +++ b/test/integration/poolbracket_matchups_test.rb @@ -244,4 +244,9 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest assert_equal "Winner Pool 2", @semi_bouts.second.loser1_name assert_equal "Runner Up Pool 1", @semi_bouts.second.loser2_name end + test 'test mat assignment after match generation' do + @matches = @tournament.matches.order(:bout_number) + assert_equal 'Mat1', @matches.first.mat.name + end + end