trigger.rb 339 B

12345678910
  1. FactoryBot.define do
  2. factory :trigger do
  3. sequence(:name) { |n| "Test trigger #{n}" }
  4. condition { { 'ticket.state_id' => { 'operator' => 'is not', 'value' => 4 } } }
  5. perform { { 'ticket.state_id' => { 'value' => 4 } } }
  6. active { true }
  7. created_by_id { 1 }
  8. updated_by_id { 1 }
  9. end
  10. end