Skip to content

Instantly share code, notes, and snippets.

@krrg
Created August 12, 2015 20:21
Show Gist options
  • Save krrg/5c77fbcace4ce54df2ac to your computer and use it in GitHub Desktop.
Save krrg/5c77fbcace4ce54df2ac to your computer and use it in GitHub Desktop.
def visit_current_page_after(&block)
orig_url = page.current_url
block.call()
visit orig_url
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment