Skip to content

Instantly share code, notes, and snippets.

@arnab
Created June 27, 2012 06:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnab/3002038 to your computer and use it in GitHub Desktop.
Save arnab/3002038 to your computer and use it in GitHub Desktop.
Capybara's launchy integration, without installing the launchy gem
# From inside a Rails root directory
# After you call save_and_open_page in Capybara (and you don't have or want launchy)
open -a "Google Chrome" "tmp/capybara/"`ls -tr tmp/capybara/ | head -2 | tail -1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment