Class: Minitest::Generators::JobGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/minitest/job/job_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Base

default_source_root, #spec_expectation_monad, #test_file_type

Instance Method Details

#create_test_fileObject



10
11
12
# File 'lib/generators/minitest/job/job_generator.rb', line 10

def create_test_file
  template "unit_#{test_file_type}.rb", File.join("test/jobs", class_path, "#{file_name}_job_test.rb")
end