Sha256: f079928b67caca7840fab5b4978ab9a7e6795c4427c253d920cc5846853ebc7d

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

require 'spec_helper'

describe Rambling::Trie::Serializers::Yaml do
  let(:serializer) { Rambling::Trie::Serializers::Yaml.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.yml' }
    let(:content) { trie.root }
    let(:formatted_content) { YAML.dump content }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rambling-trie-1.0.2 spec/lib/rambling/trie/serializers/yaml_spec.rb
rambling-trie-1.0.1 spec/lib/rambling/trie/serializers/yaml_spec.rb
rambling-trie-1.0.0 spec/lib/rambling/trie/serializers/yaml_spec.rb