Class: Rys::Generators::Rspec::HelperGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/rys/rspec/helper_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#generate_helper_specObject


10
11
12
13
14
15
# File 'lib/generators/rys/rspec/helper_generator.rb', line 10

def generate_helper_spec
  return unless options[:helper_specs]

  target_file = File.join('spec/controllers', class_path, "#{file_name}_helper_spec.rb")
  template 'helper_spec.rb', target_file
end