Sha256: 05224d0cd34afa043487df50b426917bb35a06328e3d63a669555a58373a2a55

Contents?: true

Size: 633 Bytes

Versions: 7

Compression:

Stored size: 633 Bytes

Contents

require 'spec_helper'

if LibZMQ.version4?
  describe LibZMQ do

    it "exposes new context management methods" do
      [:zmq_ctx_term, :zmq_ctx_shutdown].each do |method|
        expect(LibZMQ).to respond_to(method)
      end
    end

    it "exposes new sending methods" do
      expect(LibZMQ).to respond_to(:zmq_send_const)
    end

    it "exposes the binary encoding / decoding API" do
      [:zmq_z85_encode, :zmq_z85_decode].each do |method|
        expect(LibZMQ).to respond_to(method)
      end
    end

    it "exposes CURVE security methods" do
      expect(LibZMQ).to respond_to(:zmq_curve_keypair)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffi-rzmq-core-1.0.7 spec/libzmq4_spec.rb
ffi-rzmq-core-1.0.6 spec/libzmq4_spec.rb
ffi-rzmq-core-1.0.5 spec/libzmq4_spec.rb
ffi-rzmq-core-1.0.4 spec/libzmq4_spec.rb
ffi-rzmq-core-1.0.3 spec/libzmq4_spec.rb
ffi-rzmq-core-1.0.2 spec/libzmq4_spec.rb
ffi-rzmq-core-1.0.1 spec/libzmq4_spec.rb