scinote-web/spec/factories/my_module_status_flows.rb
2020-08-27 13:38:32 +02:00

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