Sha256: 25b3d794168e737991d9b9348421d441a418d30f8cf71a4b3c1ceb5513056a96

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

FactoryGirl.define do
  factory :dictionary, class: MemoryDictionary::Dictionary do
    name 'rosetta-stone'

    factory :dictionary_with_words, class: MemoryDictionary::Dictionary do
      words {[MemoryDictionary::Word.new(name: 'ruby', translation: 'is awesome'), MemoryDictionary::Word.new(name: 'rubinius', translation: 'is faster')]}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
memory_dictionary-1.0.0 spec/factories/dictionary.rb