2019-01-10 01:30:33 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-01-23 21:54:15 +08:00
|
|
|
FactoryBot.define do
|
2017-07-10 20:38:18 +08:00
|
|
|
factory :team do
|
2019-01-10 01:30:33 +08:00
|
|
|
association :created_by, factory: :user
|
2019-01-11 17:16:50 +08:00
|
|
|
sequence(:name) { |n| "My team-#{n}" }
|
|
|
|
description { Faker::Lorem.sentence }
|
|
|
|
space_taken { 1048576 }
|
2019-06-13 18:10:44 +08:00
|
|
|
without_templates { true }
|
2019-01-15 20:45:05 +08:00
|
|
|
trait :with_members do
|
|
|
|
users { create_list :user, 3 }
|
|
|
|
end
|
2023-07-26 21:21:55 +08:00
|
|
|
trait :shareable_links_enabled do
|
|
|
|
shareable_links_enabled { true }
|
|
|
|
end
|
2017-07-10 20:38:18 +08:00
|
|
|
end
|
|
|
|
end
|