This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/spec/factories.rb

20 lines
444 B
Ruby
Raw Normal View History

2018-05-18 11:51:03 -04:00
FactoryBot.define do
factory :user do
password = Faker::Internet.password(8)
provider { %w(greenlight google twitter).sample }
uid { rand(10 ** 8) }
name { Faker::Name.first_name }
username { Faker::Internet.user_name }
email { Faker::Internet.email }
password { password }
password_confirmation { password }
end
factory :room do
name { Faker::Pokemon.name }
2018-06-15 14:41:07 -04:00
owner { create(:user) }
2018-05-18 11:51:03 -04:00
end
2018-06-15 14:41:07 -04:00
end