about summary refs log tree commit homepage
path: root/test/rails
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-03-20 19:46:44 -0700
committerEric Wong <normalperson@yhbt.net>2010-03-20 19:47:29 -0700
commit36d0fa866ac696ee8acde74f2cffccd06ab8e816 (patch)
tree4f0d523851ea00315685c1ec4c2b7d4899577b00 /test/rails
parentb1e90244af775cc6713a531f4194726e35df5379 (diff)
downloadunicorn-36d0fa866ac696ee8acde74f2cffccd06ab8e816.tar.gz
Avoid Tempfile.new(nil), which breaks under Ruby 1.9.2
and was probably a bad idea to begin with.
Diffstat (limited to 'test/rails')
-rw-r--r--test/rails/test_rails.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rails/test_rails.rb b/test/rails/test_rails.rb
index 304f519..6742722 100644
--- a/test/rails/test_rails.rb
+++ b/test/rails/test_rails.rb
@@ -234,7 +234,7 @@ logger Logger.new('#{COMMON_TMP.path}')
   def test_alt_url_root_config_env
     # cbf to actually work on this since I never use this feature (ewong)
     return unless ROR_V[0] >= 2 && ROR_V[1] >= 3
-    tmp = Tempfile.new(nil)
+    tmp = Tempfile.new('')
     tmp.syswrite("ENV['RAILS_RELATIVE_URL_ROOT'] = '/poo'\n")
     redirect_test_io do
       @pid = fork { exec 'unicorn_rails', "-l#@addr:#@port", "-c", tmp.path }