Sha256: fa3f7ce8fb599f88cc6423ac377cceb6dafc23c244f71cf96f65f7780b8a5359
Contents?: true
Size: 346 Bytes
Versions: 124
Compression:
Stored size: 346 Bytes
Contents
RSpec::Matchers.define :be_reachable do match do |host| proto = 'tcp' timeout = 5 if @attr port = @attr[:port] proto = @attr[:proto] if @attr[:proto] timeout = @attr[:timeout] if @attr[:timeout] end host.reachable?(port, proto, timeout) end chain :with do |attr| @attr = attr end end
Version data entries
124 entries across 124 versions & 4 rubygems