diff options
Diffstat (limited to 'test/jobs')
-rw-r--r-- | test/jobs/logging_job.rb | 10 | ||||
-rw-r--r-- | test/jobs/nested_job.rb | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/jobs/logging_job.rb b/test/jobs/logging_job.rb new file mode 100644 index 0000000000..d84ed8589b --- /dev/null +++ b/test/jobs/logging_job.rb @@ -0,0 +1,10 @@ +class LoggingJob < ActiveJob::Base + def perform(dummy) + logger.info "Dummy, here is it: #{dummy}" + end + + def job_id + "LOGGING-JOB-ID" + end +end + diff --git a/test/jobs/nested_job.rb b/test/jobs/nested_job.rb new file mode 100644 index 0000000000..fd66f68991 --- /dev/null +++ b/test/jobs/nested_job.rb @@ -0,0 +1,10 @@ +class NestedJob < ActiveJob::Base + def perform + LoggingJob.enqueue "NestedJob" + end + + def job_id + "NESTED-JOB-ID" + end +end + |