scinote-web/spec/factories/repository_list_items.rb

9 lines
288 B
Ruby
Raw Normal View History

FactoryBot.define do
factory :repository_list_item do
data { Faker::Name.unique.name }
2018-02-09 21:11:56 +08:00
repository { Repository.first || create(:repository) }
created_by { User.first || association(:project_user) }
last_modified_by { User.first || association(:project_user) }
end
end