Sha256: dc851379b1a1f0b226fc5947120b19cdb870366b3639ad1f5d828e7effbc8716

Contents?: true

Size: 295 Bytes

Versions: 4

Compression:

Stored size: 295 Bytes

Contents

require 'spec_helper'
require 'ffi/msgpack/extensions/hash'

describe Hash do
  subject { {1 => 'a', 2 => 'b'} }

  it "should be packable" do
    should be_kind_of(FFI::MsgPack::Packable)
  end

  it "should pack to a msg" do
    subject.to_msgpack.should == "\x82\x01\xA1a\x02\xA1b"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffi-msgpack-0.2.1 spec/extensions/hash_spec.rb
ffi-msgpack-0.2.0 spec/extensions/hash_spec.rb
ffi-msgpack-0.1.4 spec/extensions/hash_spec.rb
ffi-msgpack-0.1.3 spec/extensions/hash_spec.rb