Sha256: 2ca07d77407f1c69b0d16e4aad4c0faa2587023a4567a121807ddfb78f0be9c0

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

context 'Publishers' do
  setup do
    @context = EZMQ::Context.new
    options = { transport: :inproc, address: 'test', context: @context }
    @publisher = EZMQ::Publisher.new options
    @subscriber = EZMQ::Subscriber.new options
    Thread.new do
      socket.receive
    end
  end

  should 'return the length of messages they send (without a topic)' do
    assert_equal 8, @publisher.send('message')
  end

  should 'return the length of messages they send (with a topic)' do
    assert_equal 8, @publisher.send('message')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ezmq-0.4.3 tests/ezmq/publish.rb
ezmq-0.4.2 tests/ezmq/publish.rb
ezmq-0.4.1 tests/ezmq/publish.rb
ezmq-0.4.0 tests/ezmq/publish.rb