Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module FixtureReplacement
- attributes_for :user do |u|
- email = random_email
- u.username = random_username
- u.password = "my-pass"
- u.password_confirmation = "my-pass"
- u.education_level = default_education
- u.gender = "male"
- u.email_address = email
- u.email_address_confirmation = email
- u.date_of_birth = Time.mktime('1985', '06', '12')
- u.active = true
- end
- end
Add Comment
Please, Sign In to add comment