Sha256: b6016bcff83fce6cd83056db3f6c5bb7a9c5c7a757961c76bae4a89b0543e8c8

Contents?: true

Size: 272 Bytes

Versions: 4

Compression:

Stored size: 272 Bytes

Contents

require 'spec_helper'
require 'ffi/msgpack/extensions/true_class'

describe TrueClass do
  subject { true }

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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