Class: Rspec::Generators::ResponderGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/rspec/responder_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



8
9
10
11
# File 'lib/generators/rspec/responder_generator.rb', line 8

def copy_files
  empty_directory 'spec/bot/responders'
  template "responder_spec.rb", "spec/bot/responders/#{file_name}_spec.rb"
end