Sha256: 637d48cb702aad9ff54301e5a9184782833e59fa74cca672465e9ee98095d238
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 Bytes
Contents
require 'spec_helper' describe Rambling::Trie::Serializers::Marshal do let(:serializer) { Rambling::Trie::Serializers::Marshal.new } let(:words) { %w(a few words to validate that load and dump are working) } let(:trie) { Rambling::Trie.create { |t| words.each { |w| t << w } } } it_behaves_like 'a serializer' do let(:filepath) { File.join ::SPEC_ROOT, 'tmp', 'trie-root.marshal' } let(:content) { trie.root } let(:formatted_content) { Marshal.dump content } end end
Version data entries
3 entries across 3 versions & 1 rubygems