scheduler.rb 583 B

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