Sha256: 4f0878297036d4c2cd580b93458f92f68bc62ab9bb41d183a7a692132fb7a3c4
Contents?: true
Size: 633 Bytes
Versions: 14
Compression:
Stored size: 633 Bytes
Contents
############################################################################## # WebMock Plugin ############################################################################## begin require 'webmock/rspec' RSpec.configure do |config| config.around(:each, web_mock: ->(v) { !!v }) do |example| options = example.metadata[:web_mock] options = case options when TrueClass { allow_localhost: true } end WebMock.disable_net_connect!(options) example.run WebMock.allow_net_connect! end end rescue LoadError end
Version data entries
14 entries across 14 versions & 1 rubygems