Ravn::SpecHelpers::

NetHelpers module

Public Instance Methods

be_a_messagepacked( expected_class )

Set an expectation that the receiving value is an instance of the expected_class that’s been encoded with msgpack.

# File lib/ravn/spec_helpers/net_helpers.rb, line 67
def be_a_messagepacked( expected_class )
        return Ravn::SpecHelpers::NetHelpers::BeMessagepackedMatcher.new( expected_class )
end
zyre_uuid()

Return a Zyre-/Czmq-style UUID (no hyphens)

# File lib/ravn/spec_helpers/net_helpers.rb, line 10
def zyre_uuid
        return SecureRandom.uuid.tr( '-', '' )
end