Method: Webrat::SaveAndOpenPage#open_in_browser
- Defined in:
- lib/webrat/core/save_and_open_page.rb
#open_in_browser(path) ⇒ Object
:nodoc
20 21 22 23 24 25 |
# File 'lib/webrat/core/save_and_open_page.rb', line 20 def open_in_browser(path) # :nodoc require "launchy" Launchy.open(path) rescue LoadError warn "Sorry, you need to install launchy to open pages: `gem install launchy`" end |