mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +08:00
26 lines
523 B
Ruby
26 lines
523 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
|