From 9038d6b0ed6e05c48cb5b2af876dc6eda77c24aa Mon Sep 17 00:00:00 2001 From: Stephen Caudill Date: Sat, 25 Sep 2010 15:21:19 -0400 Subject: [PATCH] Allow connections to be passed through to Selenium --- features/support/env.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/support/env.rb b/features/support/env.rb index fa71d7577..4774a3d27 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -22,6 +22,8 @@ require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links wi # steps to use the XPath syntax. Capybara.default_selector = :css +WebMock.disable_net_connect!(:allow_localhost => true) + # If you set this to false, any error raised from within your app will bubble # up to your step definition and out to cucumber unless you catch it somewhere # on the way. You can make Rails rescue errors and render error pages on a