2017-11-21 21:50:03 +00:00
|
|
|
FactoryBot.define do
|
2017-05-02 11:37:20 +00:00
|
|
|
factory :ticket do
|
|
|
|
title 'Test Ticket'
|
|
|
|
group { Group.lookup(name: 'Users') }
|
2017-11-21 21:50:03 +00:00
|
|
|
customer { FactoryBot.create(:customer_user) }
|
2017-05-02 11:37:20 +00:00
|
|
|
state { Ticket::State.lookup(name: 'new') }
|
|
|
|
priority { Ticket::Priority.lookup(name: '2 normal') }
|
|
|
|
updated_by_id 1
|
|
|
|
created_by_id 1
|
|
|
|
end
|
|
|
|
end
|