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/09/14 23:35:52 UTC

svn commit: r695293 - /incubator/buildr/trunk/spec/test_coverage_spec.rb

Author: lacton
Date: Sun Sep 14 14:35:52 2008
New Revision: 695293

URL: http://svn.apache.org/viewvc?rev=695293&view=rev
Log:
Comment added

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

Modified: incubator/buildr/trunk/spec/test_coverage_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/test_coverage_spec.rb?rev=695293&r1=695292&r2=695293&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/test_coverage_spec.rb (original)
+++ incubator/buildr/trunk/spec/test_coverage_spec.rb Sun Sep 14 14:35:52 2008
@@ -43,6 +43,10 @@
     end
   end
   
+  # Test if a directory contains at least one file matching a given glob pattern.
+  #
+  # For example, to check that a directory contains at least one HTML file:
+  #   '/path/to/some/directory'.should have_files_matching('*.html')
   def have_files_matching pattern
     FileNamePatternMatcher.new pattern
   end