1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Add a more accurate error message for the Launchy LoadError (closes #248)

This commit is contained in:
Jeff Kreeftmeijer 2011-01-17 12:14:19 +01:00
parent 282ffa48d4
commit a04e0b4d1d

View file

@ -21,7 +21,8 @@ module Capybara
require "launchy"
Launchy::Browser.run(path)
rescue LoadError
warn "Sorry, you need to install launchy to open pages: `gem install launchy`"
warn "Sorry, you need to install launchy (`gem install launchy`) and " <<
"make sure it's available to open pages with `save_and_open_page`."
end
def rewrite_css_and_image_references(response_html) # :nodoc: