Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Follow the expected gem name/require path

  • Loading branch information...
commit eeeddbd072410fa8c15d7e6afe640c1be1d47dda 1 parent 6d92f35
@foca foca authored
View
12 lib/capybara-webkit.rb
@@ -1,11 +1 @@
-require "capybara"
-require "capybara/driver/webkit"
-
-Capybara.register_driver :webkit do |app|
- Capybara::Driver::Webkit.new(app)
-end
-
-Capybara.register_driver :webkit_debug do |app|
- browser = Capybara::Driver::Webkit::Browser.new(:socket_class => Capybara::Driver::Webkit::SocketDebugger)
- Capybara::Driver::Webkit.new(app, :browser => browser)
-end
+require "capybara/webkit"
View
11 lib/capybara/webkit.rb
@@ -0,0 +1,11 @@
+require "capybara"
+require "capybara/driver/webkit"
+
+Capybara.register_driver :webkit do |app|
+ Capybara::Driver::Webkit.new(app)
+end
+
+Capybara.register_driver :webkit_debug do |app|
+ browser = Capybara::Driver::Webkit::Browser.new(:socket_class => Capybara::Driver::Webkit::SocketDebugger)
+ Capybara::Driver::Webkit.new(app, :browser => browser)
+end
View
2  spec/integration/session_spec.rb
@@ -1,7 +1,7 @@
# -*- encoding: UTF-8 -*-
require 'spec_helper'
-require 'capybara-webkit'
+require 'capybara/webkit'
describe Capybara::Session do
subject { Capybara::Session.new(:reusable_webkit, @app) }
Please sign in to comment.
Something went wrong with that request. Please try again.