scinote-web/spec/factories/repository_list_items.rb

9 lines
263 B
Ruby
Raw Normal View History

FactoryBot.define do
factory :repository_list_item do
2018-02-09 23:28:21 +08:00
data ''
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