trabajo-afectivo/spec/factories/ticket/time_accounting.rb

14 lines
375 B
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
FactoryBot.define do
factory :'ticket/time_accounting', aliases: %i[ticket_time_accounting] do
ticket
time_unit { Faker::Number.number(digits: 2) }
created_by_id { 1 }
trait :for_article do
ticket_article { create(:'ticket/article', ticket: ticket) }
end
end
end