Class: Minitest::Generators::ControllerGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/minitest/controller/controller_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_filesObject



13
14
15
16
# File 'lib/generators/minitest/controller/controller_generator.rb', line 13

def create_test_files
  template "functional_#{test_file_type}.rb",
           File.join("test/controllers", class_path, "#{file_name}_controller_test.rb")
end