summaryrefslogtreecommitdiff
blob: 4e83d736ac5f9f9c5ca3563b46ef0e5ba0affe3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/spec/patron_spec.rb b/spec/patron_spec.rb
index fc996d0..a3ebe8c 100644
--- a/spec/patron_spec.rb
+++ b/spec/patron_spec.rb
@@ -21,7 +21,7 @@ unless RUBY_PLATFORM =~ /java/
       describe "file requests" do
 
         before(:each) do
-          @dir_path = Dir.tmpdir
+          @dir_path = Dir.mktmpdir('webmock-')
           @file_path = File.join(@dir_path, "webmock_temp_test_file")
           FileUtils.rm_rf(@file_path) if File.exists?(@file_path)
         end