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
factory :score do
score { 0 }
score { rand(0..10) }
match
team
end

View File

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