Module: MiniTestSpecRails::Init::ActiveJobBehavior::Descriptions

Defined in:
lib/minitest-spec-rails/init/active_job.rb

Instance Method Summary collapse

Instance Method Details

#described_classObject



14
15
16
17
18
# File 'lib/minitest-spec-rails/init/active_job.rb', line 14

def described_class
  determine_constant_from_test_name(name) do |constant|
    constant.is_a?(Class) && constant < ActiveJob::Base
  end
end