spec/spec_helper.rb in percy-capybara-0.1.0 vs spec/spec_helper.rb in percy-capybara-0.1.1
- old
+ new
@@ -33,9 +33,10 @@
Kernel.srand config.seed
# Comment this out to test the default Selenium/Firefox flow:
Capybara.javascript_driver = :webkit
- config.before(:all) do
- WebMock.disable_net_connect!(allow_localhost: true, allow: [/maxcdn.bootstrapcdn.com/])
+ config.before(:each) do
+ WebMock.disable_net_connect!(allow_localhost: true)
end
+ config.before(:each, type: :feature) { WebMock.allow_net_connect! }
end