Improve Factories

This commit is contained in:
Daniel Schädler 2018-11-29 11:01:52 +01:00
parent 34159f7e01
commit 8e7869b879
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
FactoryBot.define do FactoryBot.define do
factory :score do factory :score do
score { 0 } score { rand(0..10) }
match match
team team
end end

View File

@ -2,7 +2,7 @@
FactoryBot.define do FactoryBot.define do
factory :user do factory :user do
username { Faker::Internet.username } username { Faker::Internet.unique.username }
email { Faker::Internet.email } email { Faker::Internet.unique.email }
end end
end end