Sha256: d590147f7a58da020ebdb4389af3e1832e6d673dce9b59af07ec85f593c19517
Contents?: true
Size: 355 Bytes
Versions: 23
Compression:
Stored size: 355 Bytes
Contents
# encoding: utf-8 require File.join(File.dirname(__FILE__), '..', 'helper') class TestPubSocket < ZmqTestCase def test_behavior ctx = ZMQ::Context.new sock = ctx.socket(:PUB) assert_equal ZMQ::PUB, sock.type assert_equal "PUB socket", sock.to_s assert_raises ZMQ::Error do sock.recv end ensure ctx.destroy end end
Version data entries
23 entries across 23 versions & 1 rubygems