summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/support/env.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index 91a92314959..2602fbfe179 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -16,7 +16,8 @@ end
Dir["#{Rails.root}/features/steps/shared/*.rb"].each { |file| require file }
-WebMock.allow_net_connect!
+WebMock.enable!
+WebMock.disable_net_connect!(allow_localhost: true)
Spinach.hooks.before_run do
include RSpec::Mocks::ExampleMethods