mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
17 lines
412 B
Ruby
17 lines
412 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :my_module_status_flow do
|
|
name { Faker::Name.unique.name }
|
|
description { Faker::Lorem.sentence }
|
|
trait :in_team do
|
|
team { create :team }
|
|
visibility { :in_team }
|
|
end
|
|
trait :with_statuses do
|
|
after(:create) do |flow|
|
|
create_list :my_module_status, 3, my_module_status_flow: flow
|
|
end
|
|
end
|
|
end
|
|
end
|