require 'webmock'
require 'webmock/cucumber'

include WebMock::API

Before do
  WebMock.disable_net_connect!(:allow_localhost => true)

  # Mock out all publisher URLs
  stub_request(:get, %r{^#{Regexp.escape Plek.current.find('publisher')}/}).to_return(status: 200)

  stub_request(:get, "#{Plek.current.find('imminence')}/data_sets/public_bodies.json").to_return(body: [].to_json)
end

require 'webmock'
require 'webmock/cucumber'

include WebMock::API

Before do
  WebMock.disable_net_connect!(:allow_localhost => true)

  # Mock out all publisher URLs
  stub_request(:get, %r{^#{Regexp.escape Plek.current.find('publisher')}/}).to_return(status: 200)
end

Stop stubbing an imminence data set URL in all tests
Stop stubbing an imminence data set URL in all tests

Removing the stub doesn't seem to cause a problem and it looks like this
stub hasn't been needed since 2011 (see:
b3e0c8aefa2cb3b6c85d67c384f31dcb746ff268).
