Sha256: 96a5b731f1eb70dcabc26c143cc27287576fb45526c075ef4976c9092dc8ac1f

Contents?: true

Size: 871 Bytes

Versions: 7

Compression:

Stored size: 871 Bytes

Contents

# frozen_string_literal: false

FactoryBot.define do
  factory :dictionary, class: LittleWeasel::Dictionary do
    dictionary_key { create(:dictionary_key) }
    dictionary_cache { {} }
    dictionary_metadata { {} }
    word_filters {}
    dictionary_words do
      %w(apple
        better
        cat
        dog
        everyone
        fat
        game
        help
        italic
        jasmine
        kelp
        love
        man
        nope
        octopus
        popeye
        queue
        ruby
        stop
        top
        ultimate
        very
        was
        xylophone
        yes
        zebra)
    end

    skip_create
    initialize_with do
      new dictionary_key: dictionary_key, dictionary_cache: dictionary_cache, dictionary_metadata: dictionary_metadata, dictionary_words: dictionary_words, word_filters: word_filters
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
LittleWeasel-5.0.5 spec/factories/dictionary.rb
LittleWeasel-5.0.4 spec/factories/dictionary.rb
LittleWeasel-5.0.3 spec/factories/dictionary.rb
LittleWeasel-5.0.2 spec/factories/dictionary.rb
LittleWeasel-5.0.1 spec/factories/dictionary.rb
LittleWeasel-5.0.0 spec/factories/dictionary.rb
LittleWeasel-4.0.0 spec/factories/dictionary.rb