Skip to content

Instantly share code, notes, and snippets.

@softwaregravy
Created October 13, 2011 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softwaregravy/1284793 to your computer and use it in GitHub Desktop.
Save softwaregravy/1284793 to your computer and use it in GitHub Desktop.
User Factory
Factory.define :user do |user|
user.sequence(:email) {|n| "1test#{n}@sample.com"}
user.password 'secret'
user.password_confirmation 'secret'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment