mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 03:11:11 +08:00
3adf2bb736
Repositories, cells, columns, values (date, text, asset, list), rows, items
26 lines
503 B
Ruby
26 lines
503 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :repository_column do
|
|
sequence(:name) { |n| "My column-#{n}" }
|
|
created_by { create :user }
|
|
repository
|
|
data_type :RepositoryTextValue
|
|
|
|
trait :text_type do
|
|
data_type :RepositoryTextValue
|
|
end
|
|
|
|
trait :date_type do
|
|
data_type :RepositoryDateValue
|
|
end
|
|
|
|
trait :list_type do
|
|
data_type :RepositoryListValue
|
|
end
|
|
|
|
trait :asset_type do
|
|
data_type :RepositoryAssetValue
|
|
end
|
|
end
|
|
end
|