lib/cucumber/formatter/progress.rb in aslakhellesoy-cucumber-0.3.1.1 vs lib/cucumber/formatter/progress.rb in aslakhellesoy-cucumber-0.3.2

- old
+ new

@@ -16,22 +16,18 @@ @io.puts @io.puts print_summary end - def visit_multiline_arg(multiline_arg) - @multiline_arg = true - super - @multiline_arg = false + def visit_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background) + progress(status) + @status = status end - def visit_step_name(keyword, step_match, status, source_indent, background) - progress(status) unless status == :outline - end - def visit_table_cell_value(value, width, status) - progress(status) if (status != :thead) && !@multiline_arg + status ||= @status + progress(status) unless table_header_cell?(status) end private def print_summary @@ -53,8 +49,11 @@ char = CHARS[status] @io.print(format_string(char, status)) @io.flush end + def table_header_cell?(status) + status == :skipped_param + end end end end