mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Update to launchy-2.0
This commit is contained in:
parent
6a17be4795
commit
e084f05d11
3 changed files with 3 additions and 3 deletions
|
@ -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"])
|
||||
|
|
|
@ -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`."
|
||||
|
|
|
@ -35,7 +35,7 @@ describe Capybara do
|
|||
<html>
|
||||
HTML
|
||||
|
||||
Launchy::Browser.stub(:run)
|
||||
Launchy.stub(:open)
|
||||
end
|
||||
|
||||
def default_file_expectations
|
||||
|
|
Loading…
Reference in a new issue