GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Behaviour Driven Development framework for Ruby
Homepage: http://rspec.info
Clone URL: git://github.com/dchelimsky/rspec.git
Click here to lend your support to: rspec and make a donation at www.pledgie.com !
btakita (author)
Thu May 22 00:01:58 -0700 2008
commit  dff59d633d71eeb621bcd6b9f5d1238f78c62647
tree    477f48968a84b7bb78c9256b128648d148c54be7
parent  05138e5c973f3b69dd349570e29bad6ed55c9078
rspec / lib / spec / runner / formatter / failing_example_groups_formatter.rb
100644 26 lines (21 sloc) 0.728 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'spec/runner/formatter/base_text_formatter'
 
module Spec
  module Runner
    module Formatter
      class FailingExampleGroupsFormatter < BaseTextFormatter
        def example_failed(example, counter, failure)
          description_parts = @example_group.description_parts.collect do |description|
            description =~ /(.*) \(druby.*\)$/ ? $1 : description
          end
          @output.puts ::Spec::Example::ExampleGroupMethods.description_text(*description_parts)
 
          @output.flush
          @example_group = nil
        end
 
        def dump_failure(counter, failure)
        end
 
        def dump_summary(duration, example_count, failure_count, pending_count)
        end
      end
    end
  end
end