1 require 'spec/runner/formatter/base_text_formatter'
6 class FailingExampleGroupsFormatter < BaseTextFormatter
7 def add_example_group(example_group)
9 @example_group_description_parts = example_group.description_parts
12 def example_failed(example, counter, failure)
13 if @example_group_description_parts
14 description_parts = @example_group_description_parts.collect do |description|
15 description =~ /(.*) \(druby.*\)$/ ? $1 : description
17 @output.puts ::Spec::Example::ExampleGroupMethods.description_text(*description_parts)
19 @example_group_description_parts = nil
23 def dump_failure(counter, failure)
26 def dump_summary(duration, example_count, failure_count, pending_count)