Method: Cucumber::Formatter::Pretty#visit_scenario_name
- Defined in:
- lib/cucumber/formatter/pretty.rb
#visit_scenario_name(keyword, name, file_line, source_indent) ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/cucumber/formatter/pretty.rb', line 105 def visit_scenario_name(keyword, name, file_line, source_indent) line = " #{keyword} #{name}" line = format_string(line, :undefined) if @last_undefined @io.print(line) if @options[:source] line_comment = " # #{file_line}".indent(source_indent) @io.print(format_string(line_comment, :comment)) end @io.puts @io.flush end |