scinote-web/spec/factories/repository_rows.rb

9 lines
251 B
Ruby
Raw Normal View History

FactoryBot.define do
2017-07-28 16:14:50 +08:00
factory :repository_row do
name 'Custom row'
created_by { User.first || association(:user) }
2018-08-24 18:01:47 +08:00
repository { Repository.first || create(:repository) }
2017-07-28 16:14:50 +08:00
last_modified_by { User.first || association(:user) }
end
end