scheduler.rb 529 B

12345678910111213141516171819202122232425
  1. FactoryBot.define do
  2. sequence :test_scheduler_name do |n|
  3. "Testscheduler#{n}"
  4. end
  5. end
  6. FactoryBot.define do
  7. factory :scheduler do
  8. name { generate(:test_scheduler_name) }
  9. last_run { Time.zone.now }
  10. pid 1337
  11. prio 1
  12. status 'ok'
  13. active true
  14. period { 10.minutes }
  15. running false
  16. note 'test'
  17. updated_by_id 1
  18. created_by_id 1
  19. created_at 1
  20. updated_at 1
  21. add_attribute(:method) { 'test' }
  22. end
  23. end