mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
15 lines
373 B
Ruby
15 lines
373 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :team do
|
|
association :created_by, factory: :user
|
|
sequence(:name) { |n| "My team-#{n}" }
|
|
description { Faker::Lorem.sentence }
|
|
space_taken { 1048576 }
|
|
without_templates { true }
|
|
without_intro_demo { true }
|
|
trait :with_members do
|
|
users { create_list :user, 3 }
|
|
end
|
|
end
|
|
end
|