Sha256: f5f79984b6b0831500c88bdd67e213999020fd96a9bffbd843f8d36e5d72db09

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

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

describe Array do
  subject { [1, 2] }

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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