Skip to content

Commit

Permalink
remove code from InProgress formatter which we can leave to our super…
Browse files Browse the repository at this point in the history
… class
  • Loading branch information
Joseph Wilk committed Apr 9, 2009
1 parent 48f53cd commit 5fcd6bb
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions formatters/in_progress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,15 @@ def initialize(step_mother, io, options)
end

def visit_feature_element(feature_element)
@indent = 2
super

@passing_scenarios << feature_element if @scenario_passed
@scenario_passed = true
@feature_element_count+=1
@feature_element_count += 1

@io.flush
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
end

def visit_tags(tags)
@tags = tags
tags.accept(self)
end

private

def progress(status)
Expand Down

0 comments on commit 5fcd6bb

Please sign in to comment.