Sha256: b4f5527d51eca6ebc9d8593fa8eafecea2425e6a17b69e57bc468a15e5fb5bc2

Contents?: true

Size: 551 Bytes

Versions: 8

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: false

FactoryBot.define do
  factory :dictionary_metadata, class: 'LittleWeasel::Metadata::DictionaryMetadata' do
    dictionary_words {}
    dictionary_key { create(:dictionary_key) }
    dictionary_cache { {} }
    dictionary_metadata { {} }

    skip_create
    initialize_with do
      dictionary_hash = dictionary_words || create(:dictionary_hash)
      new dictionary_words: dictionary_hash, dictionary_key: dictionary_key, dictionary_cache: dictionary_cache, dictionary_metadata: dictionary_metadata
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
LittleWeasel-5.0.13 spec/factories/dictionary_metadata.rb
LittleWeasel-5.0.12 spec/factories/dictionary_metadata.rb
LittleWeasel-5.0.11 spec/factories/dictionary_metadata.rb
LittleWeasel-5.0.10 spec/factories/dictionary_metadata.rb
LittleWeasel-5.0.9 spec/factories/dictionary_metadata.rb
LittleWeasel-5.0.8 spec/factories/dictionary_metadata.rb
LittleWeasel-5.0.7 spec/factories/dictionary_metadata.rb
LittleWeasel-5.0.6 spec/factories/dictionary_metadata.rb