TokiTranslate/spec/factories/part_of_speech.rb
2023-12-06 15:53:25 -05:00

14 lines
412 B
Ruby

FactoryBot.define do
factory :part_of_speech do
sequence(:pos) { |n| "test-#{n.to_s}" }
language_id { FactoryBot.create(:language_english).id }
definition { "test definition" }
end
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