Created
May 1, 2012 16:13
-
-
Save moneill/2569262 to your computer and use it in GitHub Desktop.
User factory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(I use a literal for the password attribute so I can easily log in to different accounts)