Sha256: 60b5e8cccc0e5c58e8022bb66617c3683a5abfd30c83a8f77c585bc6a2508893
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
# encoding: US-ASCII require 'spec_helper' require 'ffi/msgpack/extensions/hash' describe Hash do subject { {1 => 'a', 2 => 'b'} } it "should be packable" do expect(subject).to be_kind_of(FFI::MsgPack::Packable) end it "should pack to a msg" do expect(subject.to_msgpack).to be == "\x82\x01\xA1a\x02\xA1b" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-msgpack-0.2.2 | spec/extensions/hash_spec.rb |