Improve Factories
This commit is contained in:
parent
34159f7e01
commit
8e7869b879
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
FactoryBot.define do
|
||||
factory :score do
|
||||
score { 0 }
|
||||
score { rand(0..10) }
|
||||
match
|
||||
team
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue