Sha256: 8ecf70201b6861355283201e19001ce141a84d1f14e00d159665967b7fd157da
Contents?: true
Size: 1.29 KB
Versions: 6
Compression:
Stored size: 1.29 KB
Contents
require 'spec_helper' describe LibZMQ do it "exposes basic query methods" do [:zmq_version, :zmq_errno, :zmq_strerror].each do |method| expect(LibZMQ).to respond_to(method) end end it "exposes initialization and context methods" do [:zmq_init, :zmq_term, :zmq_ctx_new, :zmq_ctx_destroy, :zmq_ctx_set, :zmq_ctx_get].each do |method| expect(LibZMQ).to respond_to(method) end end it "exposes the message API" do [:zmq_msg_init, :zmq_msg_init_size, :zmq_msg_init_data, :zmq_msg_close, :zmq_msg_data, :zmq_msg_size, :zmq_msg_copy, :zmq_msg_move, :zmq_msg_send, :zmq_msg_recv, :zmq_msg_more, :zmq_msg_get, :zmq_msg_set].each do |method| expect(LibZMQ).to respond_to(method) end end it "exposes the socket API" do [:zmq_socket, :zmq_setsockopt, :zmq_getsockopt, :zmq_bind, :zmq_connect, :zmq_close, :zmq_unbind, :zmq_disconnect, :zmq_recvmsg, :zmq_recv, :zmq_sendmsg, :zmq_send].each do |method| expect(LibZMQ).to respond_to(method) end end it "exposes the Device API" do expect(LibZMQ).to respond_to(:zmq_proxy) end it "exposes the Poll API" do expect(LibZMQ).to respond_to(:zmq_poll) end it "exposes the Monitoring API" do expect(LibZMQ).to respond_to(:zmq_socket_monitor) end end
Version data entries
6 entries across 6 versions & 1 rubygems