Add valid factories for all models

This commit is contained in:
Thor77 2018-11-19 14:50:41 +01:00
parent 0bcd3a88a9
commit 1cd4835651
6 changed files with 9 additions and 1 deletions

View File

@ -2,5 +2,7 @@
FactoryBot.define do
factory :group_score do
team
group
end
end

View File

@ -3,5 +3,6 @@
FactoryBot.define do
factory :group do
number { 0 }
stage
end
end

View File

@ -2,5 +2,7 @@
FactoryBot.define do
factory :match do
stage
group
end
end

View File

@ -3,5 +3,7 @@
FactoryBot.define do
factory :score do
score { 0 }
match
team
end
end

View File

@ -2,5 +2,6 @@
FactoryBot.define do
factory :stage do
tournament
end
end

View File

@ -3,6 +3,6 @@
FactoryBot.define do
factory :team do
name { Faker::Dog.name }
group_score
tournament
end
end