This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Description
Hello,
I have the following setup (latest versions for all gems):
capybara (2.13.0)
capybara-webkit (1.14.0)
database_cleaner (1.5.3)
Qt 5.5
MacOS Sierra
spec_helper.rb
Capybara::Webkit.configure do |config|
config.allow_unknown_urls
end
I am intermittently getting errors similar to the following when I run my tests
unknown URL: http://***/assets/***.png music! <== > 198/287 68.98% ETA: 00:08:12 - Time: 00:18:11
To block requests to unknown URLs:
Capybara::Webkit.configure do |config|
config.block_unknown_urls
end
To allow just this URL:
Capybara::Webkit.configure do |config|
config.allow_url("***/assets/***.png")
end
To allow requests to URLs from this host:
Capybara::Webkit.configure do |config|
config.allow_url("***")
end
Request to unknown URL: http://www.google-analytics.com/analytics.js
To block requests to unknown URLs:
Capybara::Webkit.configure do |config|
config.block_unknown_urls
end
To allow just this URL:
Capybara::Webkit.configure do |config|
config.allow_url("http://www.google-analytics.com/analytics.js")
end
To allow requests to URLs from this host:
Capybara::Webkit.configure do |config|
config.allow_url("www.google-analytics.com")
end
Please advise, been trying to sort this out for weeks!