[rspec-users] Some tiny but usefill fix

Dmitri Koulikoff dima at koulikoff.ru
Wed Nov 4 06:10:13 EST 2009


Dear David!

I use rpec for the several years and almost in every prject I apply the following 
patch. Today I thought that maybe you will accept it so that others may have it's benefit.

diff --git a/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb b/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb
index 4f8b9b7..895dcbd 100644
--- a/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb
+++ b/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb
@@ -52,7 +52,7 @@ module Spec
         def dump_summary(duration, example_count, failure_count, pending_count)
           return if dry_run?
           @output.puts
-          @output.puts "Finished in #{duration} seconds"
+          @output.puts "Finished in #{duration} seconds at #{Time.now.strftime('%Y.%m.%d %H:%M:%S')}"
           @output.puts

           summary = "#{example_count} example#{'s' unless example_count == 1}, #{failure_count} failure#{'s' unless failure_count == 1}"


Thank you in advance.
-- 

With best regards,
   Dmitri Koulikoff

mailto:dima at koulikoff.ru
phone: +7-495-5052185


More information about the rspec-users mailing list