16 lines
345 B
Ruby
16 lines
345 B
Ruby
# Read about factories at http://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
sequence(:uid) { |n| n }
|
|
sequence(:nickname) { |n| "mrFoo#{n}" }
|
|
|
|
factory :user do
|
|
provider "twitter"
|
|
uid
|
|
sequence(:nickname) { |n| "foobar#{n}" }
|
|
sequence(:email) { |n| "foo#{n}@bar.com" }
|
|
name nil
|
|
avatar_url nil
|
|
end
|
|
end
|