Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / lib / spec / runner / formatter / rdoc_formatter.rb
blob996088ecbd6a38653062c2e6c64b9e92f7807c5d
1 module Spec
2   module Runner
3     module Formatter
4       class RdocFormatter < BaseTextFormatter
5         def add_behaviour(name)
6           @output.puts "# #{name}"
7         end
8   
9         def example_passed(name)
10           @output.puts "# * #{name}"
11           @output.flush
12         end
14         def example_failed(name, counter, failure)
15           @output.puts "# * #{name} [#{counter} - FAILED]"
16         end
17         
18         def example_not_implemented(name)
19           @output.puts "# * #{name} [NOT IMPLEMENTED]"
20         end
21       end
22     end
23   end
24 end