class Rspec::Generators::FeatureGenerator
@private
def filename
def filename if options[:singularize] "#{file_name.singularize}_spec.rb" else "#{file_name}_spec.rb" end end
def generate_feature_spec
def generate_feature_spec return unless options[:feature_specs] template template_name, File.join('spec/features', class_path, filename) end
def template_name
def template_name options[:singularize] ? 'feature_singular_spec.rb' : 'feature_spec.rb' end