NameError: uninitialized constant Capybara :: Webkit.configure
I don't have to get it right where to place this method call. I have this test_helper.rb
file
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/rails/capybara'
require 'capybara'
require 'capybara/rails'
require 'capybara/webkit'
Dir[Rails.root.join('test/support/**/*.rb')].each { |f| require f }
Capybara::Webkit.configure do |config|
config.allow_unknown_urls
end
And I get this error when I run rake test
NoMethodError: undefined method configure' for Capybara::Webkit:Module
/Users/sameer/code/rails/door_app/test/test_helper.rb:XX:in
'
It looks like I'm doing what is described in the README on the Capybara-webkit Github page.
+3
source to share