TokiTranslate/spec/factories/part_of_speech.rb

14 lines
412 B
Ruby
Raw Permalink Normal View History

FactoryBot.define do
factory :part_of_speech do
sequence(:pos) { |n| "test-#{n.to_s}" }
2023-12-06 20:53:25 +00:00
language_id { FactoryBot.create(:language_english).id }
definition { "test definition" }
end
2023-12-06 20:53:25 +00:00
factory :part_of_speech_translation, class: :part_of_speech do
sequence(:pos) { |n| "test-#{n.to_s}" }
language_id { FactoryBot.create(:language).id }
definition { "translated definition" }
end
end