Sha256: ae8b0bc1ecb7ccce9f181b7e98795113cc0a3deafc5474fe6b293788953e05ea
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
require File.join(File.dirname(__FILE__), %w[spec_helper]) module ZMQ describe Util do if LibZMQ.version4? describe "curve_keypair" do it "returns a set of public and private keys" do public_key, private_key = ZMQ::Util.curve_keypair public_key.should_not == private_key public_key.should_not be_nil private_key.should_not be_nil end it "raises if zmq does not support CURVE (libsodium not linked)" do lambda { LibZMQ.should_receive(:zmq_curve_keypair).and_return(-1) ZMQ::Util.curve_keypair }.should raise_exception(ZMQ::NotSupportedError) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-rzmq-2.0.1 | spec/util_spec.rb |