12 lines
371 B
Ruby
12 lines
371 B
Ruby
|
|
||
|
types = ["friend", "teacher", "student", "schoolmate", "parent", "best friend", "instructor", "labmate", "TA", "mate"]
|
||
|
|
||
|
FactoryGirl.define do
|
||
|
factory(:journal_co_author_relation, class: "JournalCoAuthorRelation") do |f|
|
||
|
f.sequence(:relation_translations) do |n|
|
||
|
{ zh_tw: "#{types[n%types.size]}",
|
||
|
en: "#{types[n%types.size]}" }
|
||
|
end
|
||
|
end
|
||
|
end
|