The formatter used for --format steps
# File lib/cucumber/formatter/steps.rb, line 36 36: def collect_steps(step_mother) 37: step_mother.step_definitions.inject({}) do |step_definitions, step_definition| 38: step_definitions[step_definition.file] ||= [] 39: step_definitions[step_definition.file] << [ step_definition.file_colon_line, step_definition.regexp_source ] 40: step_definitions 41: end 42: end
# File lib/cucumber/formatter/steps.rb, line 18 18: def print_summary 19: count = 0 20: @step_definition_files.keys.sort.each do |step_definition_file| 21: @io.puts step_definition_file 22: 23: sources = @step_definition_files[step_definition_file] 24: source_indent = source_indent(sources) 25: sources.sort.each do |file_colon_line, regexp_source| 26: @io.print regexp_source.indent(2) 27: @io.print " # #{file_colon_line}".indent(source_indent - regexp_source.unpack('U*').length) 28: @io.puts 29: end 30: @io.puts 31: count += sources.size 32: end 33: @io.puts "#{count} step definition(s) in #{@step_definition_files.size} source file(s)." 34: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.