Sha256: 1f45be6ba5acbd5f2c6024aae1e899f48071976b49f364561e48d339b5a19256

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

require 'spec_helper'
require 'celluloid/rspec'

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

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

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

    identity.should == "Identity"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
celluloid-zmq-0.16.0 spec/celluloid/zmq/socket_spec.rb
celluloid-zmq-0.16.0.pre spec/celluloid/zmq/socket_spec.rb