scinote-web/spec/factories/repository_list_items.rb

15 lines
339 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :repository_list_item do
data { Faker::Lorem.paragraph }
2020-04-09 23:11:58 +08:00
repository_column { create :repository_column, :list_type }
created_by { create :user }
last_modified_by { created_by }
after(:create) do |item|
item.repository_column.reload
end
end
end