Sha256: b430b6c963be44b95b526e270af9afb5d77874c9d1caa186b5a5a49d77e81d18

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

require 'celluloid/rspec'

RSpec.describe Celluloid::ZMQ::Socket, actor_system: :global do

  it "allows setting and getting ZMQ options on the socket" do
    socket = Celluloid::ZMQ::Socket::Rep.new
    socket.set(::ZMQ::IDENTITY, "Identity")

    identity = socket.get(::ZMQ::IDENTITY)

    expect(identity).to eq("Identity")
    socket.close
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
celluloid-zmq-0.17.0 spec/celluloid/zmq/socket_spec.rb