Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
fix missed browser_initialized? method
Browse files Browse the repository at this point in the history
Few weeks ago capybara introduced a new driver method that missed in our driver specification (teamcapybara/capybara#1237). 

After updating gems versions, I run tests and seen an exception: 
`undefined method `browser_initialized?' for #<Capybara::Webkit::Driver:0xe9854a0>`

We can resolve this and possible future updates just inherited from default web driver, for example, like it was implemented in poltergeist web driver (https://github.com/teampoltergeist/poltergeist/blob/master/lib/capybara/poltergeist/driver.rb#L4)
  • Loading branch information
achempion committed Oct 21, 2014
1 parent 86e422f commit acf748e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/webkit/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
require "capybara/webkit/errors"

module Capybara::Webkit
class Driver
class Driver < Capybara::Driver::Base
attr_reader :browser

def initialize(app, options={})
Expand Down

0 comments on commit acf748e

Please sign in to comment.