Mimic the Progress formatter for console status feedback. vim-stuff
authorMahlon E. Smith <mahlon@martini.nu>
Sat, 18 Aug 2012 01:47:43 -0700
branchvim-stuff
changeset 23 050dd6dcf346
parent 22 ed72213b1788
child 24 38db5185d698
Mimic the Progress formatter for console status feedback.
specky/ruby/specky_formatter.rb
--- a/specky/ruby/specky_formatter.rb	Fri Feb 10 16:08:43 2012 -0800
+++ b/specky/ruby/specky_formatter.rb	Sat Aug 18 01:47:43 2012 -0700
@@ -190,10 +190,17 @@
 
 ### Identical to the regular SpeckyFormatter, but it puts summary
 ### information at the bottom of the screen instead of the top, and just
-### spits out rudamentary failure info.
+### spits out rudamentary failure info.  Mimics the progress
+### formatter for status feedback
 ###
 class SpeckyFormatterConsole < SpeckyFormatter
+
+	def example_passed( ex );  print '.'; end
+	def example_failed( ex );  print 'F'; end
+	def example_pending( ex ); print '*'; end
+
 	def close
+		puts
 		puts "Failures:" unless @failures.empty?
 		@failures.each do |test|
 			metadata = test.metadata