Parent

Cucumber::FeatureGenerator

Attributes

named_args[R]

Public Class Methods

Public Instance Methods

generate() click to toggle source
# File lib/generators/cucumber/feature/feature_generator.rb, line 15
def generate
  empty_directory 'features/step_definitions'
  template 'feature.erb', "features/manage_#{plural_name}.feature"
  template 'steps.erb', "features/step_definitions/#{singular_name}_steps.rb"
  gsub_file 'features/support/paths.rb', /'\/'/i do |match|
    "#{match}\n    when /the new #{singular_name} page/\n      new_#{singular_name}_path\n"
  end
end
parse_fields() click to toggle source
# File lib/generators/cucumber/feature/feature_generator.rb, line 11
def parse_fields
  @named_args = @fields.nil? ? [] : @fields.map { |arg| NamedArg.new(arg) }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.