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