Retrospring/spec/factories/users.rb

9 lines
268 B
Ruby
Raw Normal View History

2014-11-14 11:45:30 -08:00
FactoryGirl.define do
factory :user do |u|
2014-12-07 03:42:03 -08:00
u.sequence(:screen_name) { |n| "#{Faker::Internet.user_name 0..12, %w(_)}#{n}" }
u.sequence(:email) { |n| "#{n}#{Faker::Internet.email}" }
u.password "P4s5w0rD"
2014-11-14 11:45:30 -08:00
u.display_name { Faker::Name.name }
end
end