Sha256: af8bd30ff4ff3287f82a174d29d218f262f637d02e91e25a91b9e790d7ac4e2d

Contents?: true

Size: 513 Bytes

Versions: 157

Compression:

Stored size: 513 Bytes

Contents

# encoding: ascii-8bit
require 'spec_helper'

require 'stringio'
if defined?(Encoding)
  Encoding.default_external = 'ASCII-8BIT'
end

describe Packer do
  let :packer do
    Packer.new
  end

  it 'initialize' do
    Packer.new
    Packer.new(nil)
    Packer.new(StringIO.new)
    Packer.new({})
    Packer.new(StringIO.new, {})
  end

  it 'buffer' do
    o1 = packer.buffer.object_id
    packer.buffer << 'frsyuki'
    packer.buffer.to_s.should == 'frsyuki'
    packer.buffer.object_id.should == o1
  end
end

Version data entries

157 entries across 157 versions & 4 rubygems

Version Path
msgpack-0.7.1-java spec/cruby/buffer_packer.rb
msgpack-0.7.1 spec/cruby/buffer_packer.rb
msgpack-0.7.0-x64-mingw32 spec/cruby/buffer_packer.rb
msgpack-0.7.0-x86-mingw32 spec/cruby/buffer_packer.rb
msgpack-0.7.0-java spec/cruby/buffer_packer.rb
msgpack-0.7.0 spec/cruby/buffer_packer.rb
msgpack-0.7.0dev1-java spec/cruby/buffer_packer.rb
msgpack-0.7.0dev1-x64-mingw32 spec/cruby/buffer_packer.rb
msgpack-0.7.0dev1-x86-mingw32 spec/cruby/buffer_packer.rb
msgpack-0.7.0dev1 spec/cruby/buffer_packer.rb
msgpack-0.6.2-x64-mingw32 spec/cruby/buffer_packer.rb
msgpack-0.6.2-x86-mingw32 spec/cruby/buffer_packer.rb
msgpack-0.6.2-java spec/cruby/buffer_packer.rb
msgpack-0.6.2 spec/cruby/buffer_packer.rb
msgpack-0.6.1-x64-mingw32 spec/cruby/buffer_packer.rb
msgpack-0.6.1-x86-mswin32-60 spec/cruby/buffer_packer.rb
msgpack-0.6.1-java spec/cruby/buffer_packer.rb
msgpack-0.6.1 spec/cruby/buffer_packer.rb
msgpack-0.6.0-x64-mingw32 spec/cruby/buffer_packer.rb
msgpack-0.6.0-x86-mswin32-60 spec/cruby/buffer_packer.rb