buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1537914 - /buildr/trunk/spec/core/transport_spec.rb
Date Fri, 01 Nov 2013 12:31:51 GMT
Author: donaldp
Date: Fri Nov  1 12:31:51 2013
New Revision: 1537914

URL: http://svn.apache.org/r1537914
Log:
Attempt to avoi intermittent failures on windows by force deleting content from previous runs

Modified:
    buildr/trunk/spec/core/transport_spec.rb

Modified: buildr/trunk/spec/core/transport_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/core/transport_spec.rb?rev=1537914&r1=1537913&r2=1537914&view=diff
==============================================================================
--- buildr/trunk/spec/core/transport_spec.rb (original)
+++ buildr/trunk/spec/core/transport_spec.rb Fri Nov  1 12:31:51 2013
@@ -59,8 +59,9 @@ end
 describe URI, '#upload' do
   before do
     write @source = 'source', @content = 'Just a file'
-    @target = 'target'
-    @uri = URI(URI.escape("file://#{File.expand_path(@target)}"))
+    @target = File.expand_path('target')
+    rm_rf @target
+    @uri = URI(URI.escape("file://#{@target}"))
   end
 
   it 'should preserve file permissions if uploading to a file' do



Mime
View raw message