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