Sha256: 447bbaaa88305faa1b31d853b1e75a4ee40de89b6a170e5da80dba94db29f2d8
Contents?: true
Size: 299 Bytes
Versions: 15
Compression:
Stored size: 299 Bytes
Contents
module ResolvHelpers def stub_resolv(name, address) dns = double allow(::Resolv::DNS).to receive(:new).and_return(dns) allow(dns).to receive(:each_address). with(name).and_yield(Resolv::IPv4.create(address)) end end RSpec.configure do |conf| conf.include(ResolvHelpers) end
Version data entries
15 entries across 15 versions & 1 rubygems