1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00

Updated to rails 7.2.2

This commit is contained in:
2024-12-05 17:18:29 -05:00
parent db440c0603
commit f92faf4f5c
16 changed files with 255 additions and 115 deletions

View File

@@ -143,6 +143,7 @@ class TournamentsControllerTest < ActionController::TestCase
test "logged in tournament owner can access post weigh_in_weight" do
sign_in_owner
post :weigh_in, params: { id: 1, weight: 1, wrestler: @wrestlers }
success
end
test "logged in non tournament owner cannot access post weigh_in_weight" do
@@ -514,6 +515,7 @@ class TournamentsControllerTest < ActionController::TestCase
test "logged in tournament delegate can access post weigh_in_weight" do
sign_in_delegate
post :weigh_in, params: { id: 1, weight: 1, wrestler: @wrestlers }
success
end
test "logged in tournament delegate should post update tournament" do

View File

@@ -85,5 +85,6 @@ class EightPoolMatchGenerationTest < ActionDispatch::IntegrationTest
match.winner_id = match.w1
match.save
end
assert @tournament.matches.select{|m| m.finished == 0}.size == 0
end
end

View File

@@ -85,5 +85,6 @@ class FourPoolToQuarterGenerationTest < ActionDispatch::IntegrationTest
match.winner_id = match.w1
match.save
end
assert @tournament.matches.select{|m| m.finished == 0}.size == 0
end
end

View File

@@ -79,5 +79,6 @@ class FourPoolToSemiGenerationTest < ActionDispatch::IntegrationTest
match.winner_id = match.w1
match.save
end
assert @tournament.matches.select{|m| m.finished == 0}.size == 0
end
end

View File

@@ -46,5 +46,6 @@ class TwoPoolToFinalGenerationTest < ActionDispatch::IntegrationTest
match.winner_id = match.w1
match.save
end
assert @tournament.matches.select{|m| m.finished == 0}.size == 0
end
end

View File

@@ -59,5 +59,6 @@ class TwoPoolToSemiGenerationTest < ActionDispatch::IntegrationTest
match.winner_id = match.w1
match.save
end
assert @tournament.matches.select{|m| m.finished == 0}.size == 0
end
end