ticket.rb 316 B

1234567891011
  1. FactoryBot.define do
  2. factory :ticket do
  3. title 'Test Ticket'
  4. group { Group.lookup(name: 'Users') }
  5. customer { FactoryBot.create(:customer_user) }
  6. state { Ticket::State.lookup(name: 'new') }
  7. priority { Ticket::Priority.lookup(name: '2 normal') }
  8. updated_by_id 1
  9. created_by_id 1
  10. end
  11. end