mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
17 lines
400 B
Ruby
17 lines
400 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :project do
|
|
sequence(:name) { |n| "My project-#{n}" }
|
|
association :created_by, factory: :user
|
|
team { create :team, created_by: created_by }
|
|
archived { false }
|
|
visibility { 'hidden' }
|
|
|
|
trait :archived do
|
|
archived { true }
|
|
archived_on { Time.zone.now }
|
|
archived_by { created_by }
|
|
end
|
|
end
|
|
end
|