scinote-web/spec/factories/repository_columns.rb

9 lines
225 B
Ruby
Raw Normal View History

FactoryBot.define do
2017-07-28 16:14:50 +08:00
factory :repository_column do
name 'My Column'
created_by { User.first || create(:user) }
repository { Repository.first || create(:repository) }
data_type :RepositoryTextValue
end
end