Sha256: 2553bef9f9a2a77f349922b66af381afab7d1eae4431091b923051d19ab68236
Contents?: true
Size: 369 Bytes
Versions: 12
Compression:
Stored size: 369 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 backend.check_reachable(example, host, port, proto, timeout) end chain :with do |attr| @attr = attr end end
Version data entries
12 entries across 12 versions & 1 rubygems