Skip to content

Instantly share code, notes, and snippets.

@balinterdi
Created February 2, 2010 15:48
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 balinterdi/292757 to your computer and use it in GitHub Desktop.
Save balinterdi/292757 to your computer and use it in GitHub Desktop.
Factory.define :reset_password do |reset_pw|
reset_pw.reset_code "d1b9547cb3ec99180acfe951c807ec567c8b9252"
reset_pw.association(:user)
end
Factory.define :user do |user|
user.login { Factory.next(:login) }
user.email { Factory.next(:email) }
user.first_name 'Balint'
user.last_name 'Erdi'
user.password 'dragons'
user.password_confirmation 'dragons'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment