You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/11/01 13:31:51 UTC

svn commit: r1537914 - /buildr/trunk/spec/core/transport_spec.rb

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