Sha256: de820a3fc82fec404b0379b7b1b5f4676f581154ab018c649fc34f13ad5ce2b7

Contents?: true

Size: 740 Bytes

Versions: 1

Compression:

Stored size: 740 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

# describe Rambling::Trie::Serializers::Zip do
#   it_behaves_like 'a serializer' do
#     let(:properties) { Rambling::Trie::Configuration::Properties.new }
#     let(:serializer) { Rambling::Trie::Serializers::Zip.new properties }
#     let(:format) { 'marshal.zip' }

#     before do
#       properties.tmp_path = tmp_path
#     end

#     let(:filename) { File.basename(filepath).gsub %r{\.zip}, '' }
#     let(:formatted_content) { zip Marshal.dump content }

#     def zip content
#       cursor = Zip::OutputStream.write_buffer do |io|
#         io.put_next_entry filename
#         io.write content
#       end

#       cursor.rewind
#       cursor.read
#     end
#   end
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rambling-trie-opal-2.1.1 spec/lib/rambling/trie/serializers/zip_spec.rb