Class: Interactor::Generators::TestUnitGenerator

Inherits:
ActiveInteractor::Generators::NamedBase show all
Defined in:
lib/rails/generators/interactor/test_unit_generator.rb

Instance Method Summary collapse

Methods included from ActiveInteractor::Generators::Generator

#app_dir_name

Instance Method Details

#create_testObject



10
11
12
# File 'lib/rails/generators/interactor/test_unit_generator.rb', line 10

def create_test
  template 'test_unit.erb', Rails.root.join('test', app_dir_name, File.join(class_path), "#{file_name}_test.rb")
end