Sha256: 2b4fc655169167e9c8af09585190351ba37dcb02cba88482b2b4f368fc4dc3ab
Contents?: true
Size: 541 Bytes
Versions: 13
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true RSpec.configure do |config| config.around(:each, :webmock => lambda { |v| !!v }) do |example| config.rspeckled_logger.debug("Around Each - Start - #{__FILE__}") options = example.metadata[:webmock] options = case options when ::TrueClass { :allow_localhost => true } end ::WebMock.disable_net_connect!(options) example.run ::WebMock.allow_net_connect! config.rspeckled_logger.debug("Around Each - End - #{__FILE__}") end end
Version data entries
13 entries across 13 versions & 1 rubygems