From 36d0fa866ac696ee8acde74f2cffccd06ab8e816 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 20 Mar 2010 19:46:44 -0700 Subject: tests: fix to run under Ruby 1.9.2dev Avoid Tempfile.new(nil), which breaks under Ruby 1.9.2 and was probably a bad idea to begin with. --- test/rails/test_rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/rails') 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 } -- cgit v1.2.3-24-ge0c7