mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
14 lines
349 B
Ruby
14 lines
349 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :repository_checklist_item do
|
|
data { Faker::Lorem.paragraph }
|
|
repository_column { create :repository_column, :checklist_type }
|
|
created_by { create :user }
|
|
last_modified_by { created_by }
|
|
|
|
after(:create) do |item|
|
|
item.repository_column.reload
|
|
end
|
|
end
|
|
end
|