scinote-web/spec/factories/teams.rb

15 lines
341 B
Ruby
Raw Normal View History

2019-01-10 01:30:33 +08:00
# frozen_string_literal: true
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 }
without_templates { true }
trait :with_members do
users { create_list :user, 3 }
end
2017-07-10 20:38:18 +08:00
end
end