Sha256: 47cb19d03b7ade8466a6bba90787eb834d28d8e291054ce864223eff7f3f23fd

Contents?: true

Size: 792 Bytes

Versions: 62

Compression:

Stored size: 792 Bytes

Contents

require 'spec_helper'

RSpec.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

62 entries across 62 versions & 4 rubygems

Version Path
protobuf-3.8.5.pre0 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.8.4 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.8.3 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.8.2 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.8.1 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.8.0 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.8.0.pre1 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.7.5 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.7.4 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.7.3 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.7.2 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.7.2.pre1 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuffy-4.0.1 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.7.1 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.7.0 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.7.0.pre3 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuffy-4.0.0 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.6.12 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.6.11 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
protobuf-3.6.10 spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb