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:
parent
282ffa48d4
commit
a04e0b4d1d
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ module Capybara
|
||||||
require "launchy"
|
require "launchy"
|
||||||
Launchy::Browser.run(path)
|
Launchy::Browser.run(path)
|
||||||
rescue LoadError
|
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
|
end
|
||||||
|
|
||||||
def rewrite_css_and_image_references(response_html) # :nodoc:
|
def rewrite_css_and_image_references(response_html) # :nodoc:
|
||||||
|
|
Loading…
Add table
Reference in a new issue