diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-13 13:32:35 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-13 13:32:35 -0800 |
commit | a8154a181b9b12db019704e3473b9843b87d1b08 (patch) | |
tree | 70f2fd67e2d0a5e4c9db56b89dfc0ae81f795040 /test | |
parent | 3d22c178d766d0601b75f5c0de7ee0696745c41c (diff) | |
download | unicorn-a8154a181b9b12db019704e3473b9843b87d1b08.tar.gz |
Ruby 1.9 Tempfile objects can be passed directly to File.rename (instead of the pathname). This doesn't work in 1.8, so always just pass the pathname to File.rename.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/test_upload.rb | 2 |
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, |