21 lines
455 B
Ruby
21 lines
455 B
Ruby
# Read about factories at http://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
sequence(:uid) { |n| n }
|
|
sequence(:nickname) { |n| "user#{n}" }
|
|
|
|
factory :user do
|
|
provider "twitter"
|
|
uid
|
|
sequence(:nickname) { generate(:nickname) }
|
|
sequence(:email) { |n| "foo#{n}@bar.com" }
|
|
name nil
|
|
avatar_url nil
|
|
end
|
|
|
|
factory :dummy_user, class: User do
|
|
dummy true
|
|
sequence(:nickname) { generate(:nickname) }
|
|
end
|
|
end
|