Worlds Bets
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-09-06 10:07:47 +02:00
parent 49e49dc93d
commit dae86bd1ea
33 changed files with 1337 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
# == Schema Information
#
# Table name: world_bets
#
# id :integer not null, primary key
# bet :string
# french_score :integer
# name :string
# score :integer
# world_score :integer
# created_at :datetime not null
# updated_at :datetime not null
#
FactoryBot.define do
factory :world_bet do
name { "MyString" }
bet { "MyString" }
score { 1 }
end
end

View File

@@ -0,0 +1,16 @@
# == Schema Information
#
# Table name: world_countries
#
# id :integer not null, primary key
# code :string not null
# name :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
FactoryBot.define do
factory :world_country do
name { "MyString" }
code { "MyString" }
end
end

View File

@@ -0,0 +1,34 @@
# == Schema Information
#
# Table name: world_participants
#
# id :integer not null, primary key
# final_result :integer
# name :string not null
# qualifier_result :integer
# round :string not null
# score :integer
# semifinal_result :integer
# username :string not null
# created_at :datetime not null
# updated_at :datetime not null
# world_country_id :integer not null
#
# Indexes
#
# index_world_participants_on_world_country_id (world_country_id)
#
# Foreign Keys
#
# world_country_id (world_country_id => world_countries.id)
#
FactoryBot.define do
factory :world_participant do
username { "MyString" }
name { "MyString" }
world_country { nil }
qualifier_result { 1 }
semifinal_result { 1 }
final_result { 1 }
end
end

View File

@@ -0,0 +1,15 @@
require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the WorldsHelper. For example:
#
# describe WorldsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# end
RSpec.describe WorldsHelper, type: :helper do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,18 @@
require 'rails_helper'
# == Schema Information
#
# Table name: world_bets
#
# id :integer not null, primary key
# bet :string
# french_score :integer
# name :string
# score :integer
# world_score :integer
# created_at :datetime not null
# updated_at :datetime not null
#
RSpec.describe WorldBet, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,15 @@
require 'rails_helper'
# == Schema Information
#
# Table name: world_countries
#
# id :integer not null, primary key
# code :string not null
# name :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
RSpec.describe WorldCountry, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,29 @@
require 'rails_helper'
# == Schema Information
#
# Table name: world_participants
#
# id :integer not null, primary key
# final_result :integer
# name :string not null
# qualifier_result :integer
# round :string not null
# score :integer
# semifinal_result :integer
# username :string not null
# created_at :datetime not null
# updated_at :datetime not null
# world_country_id :integer not null
#
# Indexes
#
# index_world_participants_on_world_country_id (world_country_id)
#
# Foreign Keys
#
# world_country_id (world_country_id => world_countries.id)
#
RSpec.describe WorldParticipant, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,7 @@
require 'rails_helper'
RSpec.describe "Worlds", type: :request do
describe "GET /index" do
pending "add some examples (or delete) #{__FILE__}"
end
end