Skip to content

Instantly share code, notes, and snippets.

@moneill
Created May 1, 2012 16:13
Show Gist options
  • Save moneill/2569262 to your computer and use it in GitHub Desktop.
Save moneill/2569262 to your computer and use it in GitHub Desktop.
User factory
FactoryGirl.define do
factory :user do
first_name { Faker::Name.first_name }
last_name { Faker::Name.last_name }
email { Faker::Internet.email }
password 'password'
end
end
@moneill
Copy link
Author

moneill commented May 1, 2012

(I use a literal for the password attribute so I can easily log in to different accounts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment