lib/active_job/cancel.rb in activejob-cancel-0.2.0 vs lib/active_job/cancel.rb in activejob-cancel-0.3.0

- old
+ new

@@ -1,14 +1,15 @@ require 'active_support' require 'active_job' require 'active_job/cancel/queue_adapters' +require 'active_job/cancel/queue_adapters/test_adapter' require 'active_job/cancel/version' module ActiveJob module Cancel extend ActiveSupport::Concern - SUPPORTED_ADAPTERS = %w(Sidekiq DelayedJob Resque).freeze + SUPPORTED_ADAPTERS = %w(Sidekiq DelayedJob Resque Test).freeze def cancel if self.class.can_cancel? self.class.cancel_adapter_class.new.cancel(job_id, queue_name) else