scinote-web/spec/factories/repository_columns.rb
2019-11-29 10:16:43 +01:00

31 lines
601 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
trait :status_type do
data_type { :RepositoryStatusValue }
end
end
end