time_accounting.rb 276 B

1234567891011
  1. FactoryBot.define do
  2. factory :'ticket/time_accounting', aliases: %i[ticket_time_accounting] do
  3. ticket
  4. time_unit { rand(100) }
  5. created_by_id { 1 }
  6. trait :for_article do
  7. ticket_article { create(:'ticket/article', ticket: ticket) }
  8. end
  9. end
  10. end