mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 15:06:03 +01:00
8 lines
268 B
Ruby
8 lines
268 B
Ruby
FactoryGirl.define do
|
|
factory :user do |u|
|
|
u.sequence(:screen_name) { |n| "#{Faker::Internet.user_name 0..12, %w(_)}#{n}" }
|
|
u.sequence(:email) { |n| "#{n}#{Faker::Internet.email}" }
|
|
u.password "P4s5w0rD"
|
|
u.display_name { Faker::Name.name }
|
|
end
|
|
end
|