mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
14 lines
476 B
Ruby
14 lines
476 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :repository_asset_value do
|
|
created_by { create :user }
|
|
last_modified_by { created_by }
|
|
asset
|
|
after(:build) do |repository_asset_value|
|
|
repository_asset_value.repository_cell ||= build(:repository_cell,
|
|
:asset_value,
|
|
repository_asset_value: repository_asset_value)
|
|
end
|
|
end
|
|
end
|