Sha256: fd37beb62e6146590f7a6757cf9befa612dec18dc73b995075c8b39779396f67

Contents?: true

Size: 391 Bytes

Versions: 7

Compression:

Stored size: 391 Bytes

Contents

context 'Pullers' do
  setup do
    @context = EZMQ::Context.new
    options = { transport: :inproc, address: 'test', context: @context }
    @pusher = EZMQ::Pusher.new options
    @puller = EZMQ::Puller.new options
    Thread.new do
      @pusher.send 'message'
    end
  end

  should 'return the contents of messages they receive' do
    assert_equal 'message', @puller.receive
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ezmq-0.4.12 tests/ezmq/pull.rb
ezmq-0.4.11 tests/ezmq/pull.rb
ezmq-0.4.4 tests/ezmq/pull.rb
ezmq-0.4.3 tests/ezmq/pull.rb
ezmq-0.4.2 tests/ezmq/pull.rb
ezmq-0.4.1 tests/ezmq/pull.rb
ezmq-0.4.0 tests/ezmq/pull.rb