Sha256: 0888c0234a5338c2ef071e2c57a8931865e76741541662e0d166e8de411107ab

Contents?: true

Size: 366 Bytes

Versions: 5

Compression:

Stored size: 366 Bytes

Contents

# encoding: utf-8

require File.expand_path("../../helper.rb", __FILE__)

class TestPullSocket < ZmqTestCase
  def test_behavior
    ctx = ZMQ::Context.new
    sock = ctx.socket(:PULL)
    assert_equal ZMQ::PULL, sock.type
    assert_equal "PULL socket", sock.to_s
    assert_raises ZMQ::Error do
      sock.send("message")
    end
  ensure
    ctx.destroy
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbczmq-1.7.9 test/socket/test_pull_socket.rb
rbczmq-1.7.8 test/socket/test_pull_socket.rb
rbczmq-1.7.7 test/socket/test_pull_socket.rb
rbczmq-1.7.6 test/socket/test_pull_socket.rb
rbczmq-1.7.5 test/socket/test_pull_socket.rb