Sha256: 475f6761210f7d5a0935c80d33740f46b2238e4f39476111b9a41c9b6970c339

Contents?: true

Size: 667 Bytes

Versions: 70

Compression:

Stored size: 667 Bytes

Contents

require 'spec_helper'

describe ::Protobuf::Rpc::Zmq::Broker do
  before(:each) do
    load 'protobuf/zmq.rb'
  end

  after(:each) do
    subject.teardown
  end

  subject do
    described_class.new({ :host => '127.0.0.1', :port => 9399 })
  end

  it 'sets up a context' do
    subject.context.should be_a(::ZMQ::Context)
  end

  it 'sets up a frontend socket' do
    subject.frontend.should be_a(::ZMQ::Socket)
  end

  it 'sets up a backend socket' do
    subject.backend.should be_a(::ZMQ::Socket)
  end

  it 'sets up a polling object' do
    subject.poller.should be_a(::ZMQ::Poller)
  end

  describe '#poll' do
    # no unit tests for this method
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
protobuf-2.7.2-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.7.2 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.7.1-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.7.1 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.7.0-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.7.0 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.7.0.rc1-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.7.0.rc1 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.6-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.6 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.5-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.5 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.4-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.4 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.3-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.3 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.2-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.2 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.1-java spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
protobuf-2.6.1 spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb