# encoding: US-ASCII require 'spec_helper' require 'ffi/msgpack/extensions/float' describe Float do subject { 0.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 == "\xCB?\xC9\x99\x99\x99\x99\x99\x9A" end end