lib/minitest-spec-rails/init/active_job.rb
module MiniTestSpecRails module Init module ActiveJobBehavior extend ActiveSupport::Concern included do register_spec_type(self) { |desc| desc.is_a?(Class) && desc < ActiveJob::Base } register_spec_type(/Job( ?Test)?\z/, self) register_spec_type(self) { |desc| desc.is_a?(Class) && desc < self } extend Descriptions end module Descriptions def described_class determine_constant_from_test_name(name) do |constant| constant.is_a?(Class) && constant < ActiveJob::Base end end end end end end ActiveJob::TestCase.send :include, MiniTestSpecRails::Init::ActiveJobBehavior