You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by la...@apache.org on 2008/08/26 22:18:33 UTC

svn commit: r689202 - /incubator/buildr/trunk/spec/spec_helpers.rb

Author: lacton
Date: Tue Aug 26 13:18:33 2008
New Revision: 689202

URL: http://svn.apache.org/viewvc?rev=689202&view=rev
Log:
Added context information to the failure message of the (very convenient) InvokeMatcher class to make debugging easier.

Modified:
    incubator/buildr/trunk/spec/spec_helpers.rb

Modified: incubator/buildr/trunk/spec/spec_helpers.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/spec_helpers.rb?rev=689202&r1=689201&r2=689202&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/spec_helpers.rb (original)
+++ incubator/buildr/trunk/spec/spec_helpers.rb Tue Aug 26 13:18:33 2008
@@ -115,7 +115,8 @@
 
       def failure_message
         return @but_not.negative_failure_message if all_ran? && @but_not
-        "Expected the tasks #{expected} to run, but #{remaining} did not run, or not in the order we expected them to."
+        "Expected the tasks #{expected} to run, but #{remaining} did not run, or not in the order we expected them to." +
+          "  Tasks that ran: #{$executed.inspect}"
       end
 
       def negative_failure_message