Fixes for modern Capybara versions.
This commit is contained in:
parent
ad5d5c5d05
commit
2034c864f3
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user