Fixes for modern Capybara versions.

This commit is contained in:
John Bintz 2015-01-09 14:56:22 -05:00
parent 5e205ea347
commit 02b1e7553e
2 changed files with 12 additions and 0 deletions

View File

@ -30,6 +30,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

@ -7,6 +7,14 @@ require 'capybara/selenium/driver'
Capybara.register_driver :persistent_selenium do |app| Capybara.register_driver :persistent_selenium do |app|
require 'drb' require 'drb'
module DRb
class DRbObject
def method(name)
method_missing(:method, name)
end
end
end
DRb.start_service DRb.start_service
browser = DRbObject.new nil, PersistentSelenium.url browser = DRbObject.new nil, PersistentSelenium.url