Sha256: cdf686e9955cc101fccc74d806731e8e24669b72d8601a61ec3ce37464b7b6bd

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

# encoding: US-ASCII

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

describe String do
  subject { "hello" }

  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 == "\xA5hello"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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