2019-05-07 19:47:50 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-02-07 22:28:28 +08:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :repository_list_value do
|
2019-05-07 19:47:50 +08:00
|
|
|
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)
|
|
|
|
|
2019-05-09 23:10:02 +08:00
|
|
|
repository_list_value.repository_cell.repository_column.repository_list_items <<
|
|
|
|
repository_list_value.repository_list_item
|
2019-05-07 19:47:50 +08:00
|
|
|
end
|
2018-02-07 22:28:28 +08:00
|
|
|
end
|
|
|
|
end
|