scheduler.rb 660 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :scheduler do
  4. sequence(:name) { |n| "Testscheduler#{n}" }
  5. last_run { Time.zone.now }
  6. pid { 1337 }
  7. prio { 1 }
  8. status { 'ok' }
  9. active { true }
  10. period { 10.minutes }
  11. running { false }
  12. note { 'test' }
  13. updated_by_id { 1 }
  14. created_by_id { 1 }
  15. created_at { 1 }
  16. updated_at { 1 }
  17. add_attribute(:method) { 'test' }
  18. end
  19. end