You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by to...@apache.org on 2010/06/05 03:54:52 UTC

svn commit: r951633 - /buildr/trunk/spec/packaging/archive_spec.rb

Author: toulmean
Date: Sat Jun  5 01:54:52 2010
New Revision: 951633

URL: http://svn.apache.org/viewvc?rev=951633&view=rev
Log:
missing spec for BUILDR-447

Modified:
    buildr/trunk/spec/packaging/archive_spec.rb

Modified: buildr/trunk/spec/packaging/archive_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/packaging/archive_spec.rb?rev=951633&r1=951632&r2=951633&view=diff
==============================================================================
--- buildr/trunk/spec/packaging/archive_spec.rb (original)
+++ buildr/trunk/spec/packaging/archive_spec.rb Sat Jun  5 01:54:52 2010
@@ -420,6 +420,14 @@ describe ZipTask do
     archive(@archive).invoke
     inspect_archive { |archive| archive.keys.should include('code/') }
   end
+  
+  it 'should have path object that includes empty dirs' do
+    archive(@archive).path('code').include(Dir["#{@dir}/*"])
+    archive(@archive).invoke
+    inspect_archive do |archive|
+      archive.keys.should include('code/EmptyDir1/')
+    end
+  end
 
   # chmod is not reliable on Windows
   unless Buildr::Util.win_os?