oesmith / puffing-billy

A rewriting web proxy for testing interactions between your browser and external sites. Works with ruby + rspec.
MIT License
660 stars 168 forks source link

uninitialized constant Capybara::Webkit::Configuration #218

Closed Irostovsky closed 6 years ago

Irostovsky commented 6 years ago

Hello, looks like an issue with using puffing-billy with capybara-webkit.

rails_helper.rb:

require 'billy/capybara/rspec'

capybara.rb:

Capybara.javascript_driver = :webkit_billy

Due running feature:

 NameError:
            uninitialized constant Capybara::Webkit::Configuration
          # /Users/ir/.rvm/gems/ruby-2.5.0@guestready/gems/puffing-billy-0.11.1/lib/billy/browsers/capybara.rb:43:in `block in register_webkit_driver'

More over I could not find the Configuration class into capybara-webkit gem's sources. Maybe there is should be more dependencies added?

twalpole commented 6 years ago

You're using an obsolete version of capybara-webkit

Irostovsky commented 6 years ago

Yep. Thanks a lot! It was needed to set up the version manually in gemfile:

group :test do
  gem 'capybara-webkit', '~> 1.14.0'
end
ronwsmith commented 6 years ago

Thanks for the help @twalpole !