Sha256: 35c5ae26411ea2aa068737753cdead7be4686d60088af66e6b3511ba6a24fd66

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

require 'spec_helper'
require 'ffi/msgpack/extensions/string'

describe String do
  subject { "hello" }

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

  it "should pack to a msg" do
    subject.to_msgpack.should == "\xA5hello"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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