Class: Minitest::Generators::IntegrationGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/minitest/integration/integration_generator.rb

Instance Method Summary collapse

Methods inherited from Base

default_source_root

Instance Method Details

#create_test_filesObject


8
9
10
11
12
13
14
15
16
# File 'lib/generators/minitest/integration/integration_generator.rb', line 8

def create_test_files
  if options[:spec]
    template_file = "integration_spec.rb"
  else
    template_file = "integration_test.rb"
  end
  template template_file,
           File.join("test/integration", class_path, "#{file_name}_test.rb")
end