Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / rspec / lib / spec / runner / formatter / progress_bar_formatter.rb
blob5cc73ecc5491c69082ca1040c0b6a6f535eb8ced
1 module Spec
2   module Runner
3     module Formatter
4       class ProgressBarFormatter < BaseTextFormatter
5         def add_example_group(name)
6         end
7       
8         def example_failed(example, counter, failure)
9           @output.print colourise('F', failure)
10           @output.flush
11         end
13         def example_passed(example)
14           @output.print green('.')
15           @output.flush
16         end
17       
18         def example_pending(behaviour_name, example_name, message)
19           super
20           @output.print yellow('P')
21           @output.flush
22         end
23         
24         def start_dump
25           @output.puts
26           @output.flush
27         end
28       end
29     end
30   end
31 end