Skip to content

Instantly share code, notes, and snippets.

@diegodfsd
Created February 27, 2012 02:20
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 diegodfsd/1920832 to your computer and use it in GitHub Desktop.
Save diegodfsd/1920832 to your computer and use it in GitHub Desktop.
test signup
it "allows user do your signup with all required fields and redirect to home", :js => true do
visit new_user_registration_path
within("form#user_new") do
fill_in "user_username", :with => "username"
fill_in "user_address_postal_code", :with => "05529060"
page.execute_script("$('#user_address_street').focus()")
sleep(3)
fill_in "user_address_number", :with => "100"
click_on :submit
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment