Class: Rspec::Generators::HelperGenerator

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

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#generate_helper_specObject


8
9
10
11
12
# File 'lib/generators/rspec/helper/helper_generator.rb', line 8

def generate_helper_spec
  return unless options[:helper_specs]

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