about summary refs log tree commit homepage
path: root/test/unit/test_upload.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_upload.rb')
-rw-r--r--test/unit/test_upload.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_upload.rb b/test/unit/test_upload.rb
index a2ccc54..3e9a115 100644
--- a/test/unit/test_upload.rb
+++ b/test/unit/test_upload.rb
@@ -111,7 +111,7 @@ class UploadTest < Test::Unit::TestCase
     start_server(lambda { |env|
       new_tmp = Tempfile.new('unicorn_test')
       input = env['rack.input']
-      File.rename(input.path, new_tmp)
+      File.rename(input.path, new_tmp.path)
       resp = {
         :inode => input.stat.ino,
         :size => input.stat.size,