Class: Interactor::Generators::RspecGenerator

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

Instance Method Summary collapse

Methods included from ActiveInteractor::Generators::Generator

#app_dir_name

Instance Method Details

#create_specObject



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

def create_spec
  template 'rspec.erb', Rails.root.join('spec', app_dir_name, File.join(class_path), "#{file_name}_spec.rb")
end