mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
15 lines
494 B
Ruby
15 lines
494 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
FactoryBot.define do
|
||
|
factory :repository_text_value do
|
||
|
created_by { create :user }
|
||
|
last_modified_by { created_by }
|
||
|
data { Faker::Lorem.paragraph }
|
||
|
after(:build) do |repository_text_value|
|
||
|
repository_text_value.repository_cell ||= build(:repository_cell,
|
||
|
:text_value,
|
||
|
repository_text_value: repository_text_value)
|
||
|
end
|
||
|
end
|
||
|
end
|