Sha256: 86809d0fa86496ae6002d97dfa2be49acde96c0242f403d5dd03b57e21a74ead
Contents?: true
Size: 609 Bytes
Versions: 4
Compression:
Stored size: 609 Bytes
Contents
# Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require_relative 'config/application' Rails.application.load_tasks namespace :delayed_job_tests do task :fail_with_args do run_delayed_job_test('"TestModel.delay.fail_with_args(\"Test\")"') end task :notify_with_args do run_delayed_job_test('"TestModel.delay.notify_with_args(\"Test\")"') end end def run_delayed_job_test(command) fork do system("rake jobs:work") end system("rails runner #{command}") Process.wait end
Version data entries
4 entries across 4 versions & 1 rubygems