2018-07-18 07:30:50 +00:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :trigger do
|
|
|
|
sequence(:name) { |n| "Test trigger #{n}" }
|
2019-02-26 11:00:46 +00:00
|
|
|
condition { { 'ticket.state_id' => { 'operator' => 'is not', 'value' => 4 } } }
|
|
|
|
perform { { 'ticket.state_id' => { 'value' => 4 } } }
|
|
|
|
active { true }
|
|
|
|
created_by_id { 1 }
|
|
|
|
updated_by_id { 1 }
|
2018-07-18 07:30:50 +00:00
|
|
|
end
|
|
|
|
end
|