You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/webmock/files/webmock-1.4.0-tmpdir.patch

14 lines
482 B

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