Permalink
Browse files

Fixed webkit_debug driver initialization

  • Loading branch information...
1 parent 5c19691 commit 476a98759dffa41b4971adc7b4337306bffd3b03 @dbloete dbloete committed with jferris May 29, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/capybara/webkit.rb
View
@@ -6,6 +6,8 @@
end
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)
end

0 comments on commit 476a987

Please sign in to comment.