Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / rspec / lib / spec / runner / formatter / failing_behaviours_formatter.rb
bloba670b995326d8fceffa8d05df408a42e7d68b9ce
1 module Spec
2   module Runner
3     module Formatter
4       class FailingBehavioursFormatter < BaseTextFormatter      
5         def add_example_group(behaviour_name)
6           if behaviour_name =~ /(.*) \(druby.*\)$/
7             @behaviour_name = $1
8           else
9             @behaviour_name = behaviour_name
10           end
11         end
12       
13         def example_failed(example, counter, failure)
14           unless @behaviour_name.nil?
15             @output.puts @behaviour_name 
16             @behaviour_name = nil
17             @output.flush
18           end
19         end
21         def dump_failure(counter, failure)
22         end
24         def dump_summary(duration, example_count, failure_count, pending_count)
25         end
26       end
27     end
28   end
29 end