diff --git a/spec/bson/byte_buffer_spec.rb b/spec/bson/byte_buffer_spec.rb index f999d60e6..b23e5551e 100644 --- a/spec/bson/byte_buffer_spec.rb +++ b/spec/bson/byte_buffer_spec.rb @@ -486,28 +486,5 @@ it_behaves_like 'a rewindable buffer' end - - context 'when the buffer is instantiated from a deserialization' do - - let(:string) do - "#{BSON::Int32::BSON_TYPE}#{BSON::Int32::BSON_TYPE}" - end - - let(:buffer) do - string.to_bson - end - - before do - buffer.rewind! - end - - it 'resets the read position to 0' do - expect(buffer.read_position).to eq(0) - end - - it 'starts subsequent reads at position 0' do - expect(buffer.get_bytes(2)).to eq(string.to_bson.get_bytes(2)) - end - end end end