2019-03-07 16:05:35 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-01-23 21:54:15 +08:00
|
|
|
FactoryBot.define do
|
2017-07-28 16:14:50 +08:00
|
|
|
factory :repository_column do
|
2019-03-07 16:05:35 +08:00
|
|
|
sequence(:name) { |n| "My column-#{n}" }
|
|
|
|
created_by { create :user }
|
|
|
|
repository
|
2019-06-13 18:10:44 +08:00
|
|
|
data_type { :RepositoryTextValue }
|
2019-05-07 19:47:50 +08:00
|
|
|
|
|
|
|
trait :text_type do
|
2019-06-13 18:10:44 +08:00
|
|
|
data_type { :RepositoryTextValue }
|
2019-05-07 19:47:50 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :date_type do
|
2019-06-13 18:10:44 +08:00
|
|
|
data_type { :RepositoryDateValue }
|
2019-05-07 19:47:50 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :list_type do
|
2019-06-13 18:10:44 +08:00
|
|
|
data_type { :RepositoryListValue }
|
2019-05-07 19:47:50 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :asset_type do
|
2019-06-13 18:10:44 +08:00
|
|
|
data_type { :RepositoryAssetValue }
|
2019-05-07 19:47:50 +08:00
|
|
|
end
|
2017-07-28 16:14:50 +08:00
|
|
|
end
|
|
|
|
end
|