Module: Parliament::Utils::TestHelpers::WebmockHelper

Included in:
Parliament::Utils::TestHelpers
Defined in:
lib/parliament/utils/test_helpers/webmock_helper.rb

Class Method Summary collapse

Class Method Details

.load_rspec_config(_config) ⇒ Object



5
6
7
8
9
# File 'lib/parliament/utils/test_helpers/webmock_helper.rb', line 5

def self.load_rspec_config(_config)
  require 'webmock/rspec'

  WebMock.disable_net_connect!(allow_localhost: true)
end