mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
15 lines
480 B
Ruby
15 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
|