Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Given /^I am a user named "([^"]*)" with an email "([^"]*)" and password "([^"]*)"$/ do |first_name, email, password|
- # need to have more information here for a real user
- #:street_address, :city, :zip_code, :first_name, :us_state, :last_name
- u = User.new()
- u.first_name = first_name
- u.last_name = "Smith"
- u.email = email
- u.password = password
- u.password_confirmation = password
- u.confirmed_at = Time.now
- u.street_address = "10 Broadway"
- u.city = "Tipp City"
- u.us_state_cd = 40
- u.zip_code = '45371'
- u.save!
- @user = u
- end
Add Comment
Please, Sign In to add comment