mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
14 lines
501 B
Ruby
14 lines
501 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :repository_status_value do
|
|
created_by { create :user }
|
|
last_modified_by { created_by }
|
|
repository_status_item
|
|
after(:build) do |repository_status_value|
|
|
repository_status_value.repository_cell ||= build(:repository_cell,
|
|
:status_value,
|
|
repository_status_value: repository_status_value)
|
|
end
|
|
end
|
|
end
|