Sha256: 1927f841235d928c6cb35623a49b4072bf614fb8e76555177d113f75bc954dc7

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

# encoding: US-ASCII

require 'spec_helper'
require 'ffi/msgpack/extensions/array'

describe Array do
  subject { [1, 2] }

  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 == "\x92\x01\x02"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffi-msgpack-0.2.2 spec/extensions/array_spec.rb