Improve Factories
This commit is contained in:
parent
34159f7e01
commit
8e7869b879
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue