Fixes for modern Capybara versions.

This commit is contained in:
John Bintz 2015-01-09 14:56:22 -05:00
parent ad5d5c5d05
commit 2034c864f3
2 changed files with 14 additions and 1 deletions

View File

@ -36,6 +36,10 @@ module PersistentSelenium
{} {}
end end
def browser_initialized?
false
end
def visit(path) def visit(path)
if !path[/^http/] if !path[/^http/]
path = @app_host + path path = @app_host + path

View File

@ -10,7 +10,16 @@ require 'persistent_selenium/drb'
Capybara.register_driver :persistent_selenium do |app| Capybara.register_driver :persistent_selenium do |app|
require 'drb' require 'drb'
service = DRb.start_service module DRb
class DRbObject
def method(name)
method_missing(:method, name)
end
end
end
DRb.start_service
browser = DRbObject.new nil, PersistentSelenium.url browser = DRbObject.new nil, PersistentSelenium.url
server = Capybara::Server.new(app) server = Capybara::Server.new(app)