diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-03-20 19:46:44 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-03-20 19:47:29 -0700 |
commit | 36d0fa866ac696ee8acde74f2cffccd06ab8e816 (patch) | |
tree | 4f0d523851ea00315685c1ec4c2b7d4899577b00 /test/rails | |
parent | b1e90244af775cc6713a531f4194726e35df5379 (diff) | |
download | unicorn-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.rb | 2 |
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 } |