mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
3adf2bb736
Repositories, cells, columns, values (date, text, asset, list), rows, items
14 lines
480 B
Ruby
14 lines
480 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :repository_date_value do
|
|
created_by { create :user }
|
|
last_modified_by { created_by }
|
|
data { Time.now }
|
|
after(:build) do |repository_date_value|
|
|
repository_date_value.repository_cell ||= build(:repository_cell,
|
|
:date_value,
|
|
repository_date_value: repository_date_value)
|
|
end
|
|
end
|
|
end
|