Sha256: d2315ef16043af4a51fe917101ab0cfbf286d58cb564b641c90909c0a6b6baec

Contents?: true

Size: 359 Bytes

Versions: 23

Compression:

Stored size: 359 Bytes

Contents

# encoding: utf-8

require File.join(File.dirname(__FILE__), '..', 'helper')

class TestPushSocket < ZmqTestCase
  def test_behavior
    ctx = ZMQ::Context.new
    sock = ctx.socket(:PUSH)
    assert_equal ZMQ::PUSH, sock.type
    assert_equal "PUSH 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

Version Path
rbczmq-1.7.4 test/socket/test_push_socket.rb
rbczmq-1.7.3 test/socket/test_push_socket.rb
rbczmq-1.7.2 test/socket/test_push_socket.rb
rbczmq-1.7.1 test/socket/test_push_socket.rb
rbczmq-1.7.0 test/socket/test_push_socket.rb
rbczmq-1.6.4 test/socket/test_push_socket.rb
rbczmq-1.6.2 test/socket/test_push_socket.rb
rbczmq-1.6 test/socket/test_push_socket.rb
rbczmq-1.5 test/socket/test_push_socket.rb
rbczmq-1.4 test/socket/test_push_socket.rb
rbczmq-1.3 test/socket/test_push_socket.rb
rbczmq-1.2 test/socket/test_push_socket.rb
rbczmq-1.1 test/socket/test_push_socket.rb
rbczmq-1.0 test/socket/test_push_socket.rb
rbczmq-0.9 test/socket/test_push_socket.rb
rbczmq-0.8 test/socket/test_push_socket.rb
rbczmq-0.7 test/socket/test_push_socket.rb
rbczmq-0.6 test/socket/test_push_socket.rb
rbczmq-0.5 test/socket/test_push_socket.rb
rbczmq-0.4 test/socket/test_push_socket.rb