Guest User

Untitled

a guest
Jul 30th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Given /^I am a user named "([^"]*)" with an email "([^"]*)" and password "([^"]*)"$/ do |first_name, email, password|
  2. # need to have more information here for a real user
  3. #:street_address, :city, :zip_code, :first_name, :us_state, :last_name
  4. u = User.new()
  5. u.first_name = first_name
  6. u.last_name = "Smith"
  7. u.email = email
  8. u.password = password
  9. u.password_confirmation = password
  10. u.confirmed_at = Time.now
  11. u.street_address = "10 Broadway"
  12. u.city = "Tipp City"
  13. u.us_state_cd = 40
  14. u.zip_code = '45371'
  15. u.save!
  16. @user = u
  17. end
Add Comment
Please, Sign In to add comment