scinote-web/spec/factories/repository_list_items.rb
Urban Rotnik 3adf2bb736 Add factories and validation tests for repositories and related models
Repositories, cells, columns, values (date, text, asset, list), rows, items
2019-06-10 12:24:02 +02:00

11 lines
304 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :repository_list_item do
data { Faker::Lorem.paragraph }
repository
repository_column { create :repository_column, :list_type, repository: repository }
created_by { create :user }
last_modified_by { created_by }
end
end