From e084f05d11e9d8310695fae6880ae49e7de5f363 Mon Sep 17 00:00:00 2001 From: Jeremy Hinegardner Date: Sun, 17 Jul 2011 18:58:46 -0600 Subject: [PATCH] Update to launchy-2.0 --- capybara.gemspec | 2 +- lib/capybara/util/save_and_open_page.rb | 2 +- spec/save_and_open_page_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/capybara.gemspec b/capybara.gemspec index c98bf315..3a413b93 100644 --- a/capybara.gemspec +++ b/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"]) diff --git a/lib/capybara/util/save_and_open_page.rb b/lib/capybara/util/save_and_open_page.rb index be9a179d..3ba99308 100644 --- a/lib/capybara/util/save_and_open_page.rb +++ b/lib/capybara/util/save_and_open_page.rb @@ -23,7 +23,7 @@ module Capybara 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`." diff --git a/spec/save_and_open_page_spec.rb b/spec/save_and_open_page_spec.rb index ed162898..8ce6d396 100644 --- a/spec/save_and_open_page_spec.rb +++ b/spec/save_and_open_page_spec.rb @@ -35,7 +35,7 @@ describe Capybara do HTML - Launchy::Browser.stub(:run) + Launchy.stub(:open) end def default_file_expectations