changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1require 'spec/runner/formatter/base_text_formatter'
2
3module Spec
4 module Runner
5 module Formatter
6 class ProgressBarFormatter < BaseTextFormatter
7 def example_failed(example, counter, failure)
8 @output.print colourise('F', failure)
9 @output.flush
10 end
11
12 def example_passed(example)
13 @output.print green('.')
14 @output.flush
15 end
16
17 def example_pending(example_group_description, example, message)
18 super
19 @output.print yellow('P')
20 @output.flush
21 end
22
23 def start_dump
24 @output.puts
25 @output.flush
26 end
27 end
28 end
29 end
30end