Sha256: 897d56f8f9e6883ed850732412031883c904d62b665dc4a3843574ca5e37b661
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true ::RSpec.configure do |config| config.around(:each, webmock: ->(v) { !v.nil? }) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspeckled-2.1.1 | lib/rspeckled/plugins/hooks/webmock.rb |
rspeckled-2.1.0 | lib/rspeckled/plugins/hooks/webmock.rb |