Sha256: 2d23c58245d556b5756b8e4bc08ade7491fcd7ce9ab602b89e548167c182f818

Contents?: true

Size: 790 Bytes

Versions: 11

Compression:

Stored size: 790 Bytes

Contents

require 'spec_helper'

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

    fake_socket = double
    expect(fake_socket).to receive(:connect).and_return(0)
    expect(fake_socket).to receive(:send_string).and_return(0)

    fake_context = double
    expect(fake_context).to receive(:socket).and_return(fake_socket)
    expect(::ZMQ::Context).to receive(:new).and_return(fake_context)
  end

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

  describe '#run' do
    # not tested via unit tests
  end

  describe '#handle_request' do
    # not tested via unit tests
  end

  describe '#initialize_buffers' do
    # not tested via unit tests
  end

  describe '#send_data' do
    # not tested via unit tests
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
protobuf-3.3.6 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.3.5 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.3.4 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.3.3 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.3.2 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.3.1 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.3.0 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.2.1 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.2.0 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.1.0 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.0.5 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb