Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #415 from copiousfreetime/launchy-2.0

Update to launchy-2.0
  • Loading branch information...
commit b0dbaf83ff2ea7477bccca9c91ada1186ef4c8f1 2 parents 6a17be4 + e084f05
@joliss joliss authored
View
2  capybara.gemspec
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
s.add_development_dependency("sinatra", [">= 0.9.4"])
s.add_development_dependency("rspec", [">= 2.0.0"])
- s.add_development_dependency("launchy", [">= 0.3.5"])
+ s.add_development_dependency("launchy", ["~> 2.0.2"])
s.add_development_dependency("yard", [">= 0.5.8"])
s.add_development_dependency("fuubar", [">= 0.0.1"])
s.add_development_dependency("cucumber", [">= 0.10"])
View
2  lib/capybara/util/save_and_open_page.rb
@@ -23,7 +23,7 @@ def save_and_open_page(html, file_name=nil)
def open_in_browser(path) # :nodoc
require "launchy"
- Launchy::Browser.run(path)
+ Launchy.open(path)
rescue LoadError
warn "Sorry, you need to install launchy (`gem install launchy`) and " <<
"make sure it's available to open pages with `save_and_open_page`."
View
2  spec/save_and_open_page_spec.rb
@@ -35,7 +35,7 @@
<html>
HTML
- Launchy::Browser.stub(:run)
+ Launchy.stub(:open)
end
def default_file_expectations
Please sign in to comment.
Something went wrong with that request. Please try again.