Worlds Bets
This commit is contained in:
20
spec/factories/world_bets.rb
Normal file
20
spec/factories/world_bets.rb
Normal 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
|
||||
16
spec/factories/world_countries.rb
Normal file
16
spec/factories/world_countries.rb
Normal 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
|
||||
34
spec/factories/world_participants.rb
Normal file
34
spec/factories/world_participants.rb
Normal 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
|
||||
15
spec/helpers/worlds_helper_spec.rb
Normal file
15
spec/helpers/worlds_helper_spec.rb
Normal 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
|
||||
18
spec/models/world_bet_spec.rb
Normal file
18
spec/models/world_bet_spec.rb
Normal 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
|
||||
15
spec/models/world_country_spec.rb
Normal file
15
spec/models/world_country_spec.rb
Normal 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
|
||||
29
spec/models/world_participant_spec.rb
Normal file
29
spec/models/world_participant_spec.rb
Normal 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
|
||||
7
spec/requests/worlds_spec.rb
Normal file
7
spec/requests/worlds_spec.rb
Normal 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
|
||||
Reference in New Issue
Block a user