mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
17 lines
622 B
Ruby
17 lines
622 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :repository_list_value do
|
|
created_by { create :user }
|
|
last_modified_by { created_by }
|
|
repository_list_item
|
|
after(:build) do |repository_list_value|
|
|
repository_list_value.repository_cell ||= build(:repository_cell,
|
|
:list_value,
|
|
repository_list_value: repository_list_value)
|
|
|
|
repository_list_value.repository_cell.repository_column.repository_list_items <<
|
|
repository_list_value.repository_list_item
|
|
end
|
|
end
|
|
end
|