TokiTranslate/spec/factories/definitions.rb

9 lines
210 B
Ruby
Raw Permalink Normal View History

2023-10-14 17:05:54 +00:00
FactoryBot.define do
factory :definition do
pos { "n" }
definition { "this is a definition" }
language_id { FactoryBot.create(:language).id }
2023-10-14 17:05:54 +00:00
word_id { FactoryBot.create(:word).id }
end
end