Sha256: 78ffc8ecb9b76f6f6ffa0201970d3ee1873cfa74c13ba7964efb6ddbc24c0f5a
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
RSpec.describe MarshalStream do let(:objects) { [1, :test, 'test'] } let(:io) { StringIO.new } describe '#each' do it 'should work as expected' do stream = MarshalStream.new(io).write(*objects) io.rewind result = stream.each.to_a expect(result[0]).to eq 1 expect(result[1]).to eq :test expect(result[2]).to eq 'test' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aggro-0.0.4 | spec/lib/aggro/marshal_stream_spec.rb |