1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Upgraded to rails 8.0.2, moved from dalli to solid cache, moved from delayed_job to solid queue, and add solid cable. deploy/rails-dev-run.sh no longer needs to chmod. Fixed finished_at callback for matches. Migrated from Devise to built in rails auth. Added view tests for the bracket page testing that all bout numbers render for all matches in each bracket type.

This commit is contained in:
2025-04-08 17:54:42 -04:00
parent 9c25a6cc39
commit 2d433b680a
118 changed files with 4921 additions and 1341 deletions

View File

@@ -1,13 +1,14 @@
require 'test_helper'
class MatTest < ActiveSupport::TestCase
test "the truth" do
assert true
end
test "Mat validations" do
mat = Mat.new
assert_not mat.valid?
assert_equal [:tournament, :name], mat.errors.attribute_names
end
# test "the truth" do
# assert true
# end
test "Mat validations" do
mat = Mat.new
assert_not mat.valid?
assert_equal [:name], mat.errors.attribute_names
end
end

View File

@@ -1,13 +1,14 @@
require 'test_helper'
class SchoolTest < ActiveSupport::TestCase
test "the truth" do
assert true
end
test "School validations" do
school = School.new
assert_not school.valid?
assert_equal [:tournament,:name], school.errors.attribute_names
end
# test "the truth" do
# assert true
# end
test "School validations" do
school = School.new
assert_not school.valid?
assert_equal [:name], school.errors.attribute_names
end
end

View File

@@ -1,13 +1,14 @@
require 'test_helper'
class WeightTest < ActiveSupport::TestCase
test "the truth" do
assert true
end
test "Weight validations" do
weight = Weight.new
assert_not weight.valid?
assert_equal [:tournament, :max], weight.errors.attribute_names
end
# test "the truth" do
# assert true
# end
test "Weight validations" do
weight = Weight.new
assert_not weight.valid?
assert_equal [:max], weight.errors.attribute_names
end
end

View File

@@ -1,13 +1,14 @@
require 'test_helper'
class WrestlerTest < ActiveSupport::TestCase
test "the truth" do
assert true
end
test "Wrestler validations" do
wrestler = Wrestler.new
assert_not wrestler.valid?
assert_equal [:school, :weight, :name, :weight_id, :school_id], wrestler.errors.attribute_names
end
# test "the truth" do
# assert true
# end
test "Wrestler validations" do
wrestler = Wrestler.new
assert_not wrestler.valid?
assert_equal [:name, :weight_id, :school_id], wrestler.errors.attribute_names
end
end