1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

Fixed webkit_debug driver initialization

This commit is contained in:
Dennis Reimann 2012-05-29 17:45:00 +03:00 committed by Joe Ferris
parent 126411337e
commit cb32871bcb

View file

@ -6,6 +6,8 @@ Capybara.register_driver :webkit do |app|
end end
Capybara.register_driver :webkit_debug do |app| Capybara.register_driver :webkit_debug do |app|
browser = Capybara::Driver::Webkit::Browser.new(:socket_class => Capybara::Driver::Webkit::SocketDebugger) connection = Capybara::Driver::Webkit::Connection.new(
:socket_class => Capybara::Driver::Webkit::SocketDebugger)
browser = Capybara::Driver::Webkit::Browser.new(connection)
Capybara::Driver::Webkit.new(app, :browser => browser) Capybara::Driver::Webkit.new(app, :browser => browser)
end end