ruby-changes:13142
From: akr <ko1@a...>
Date: Sun, 13 Sep 2009 14:46:47 +0900 (JST)
Subject: [ruby-changes:13142] Ruby:r24893 (trunk, ruby_1_8): make tempfile prefix more descriptive.
akr 2009-09-13 14:46:38 +0900 (Sun, 13 Sep 2009) New Revision: 24893 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24893 Log: make tempfile prefix more descriptive. Modified files: branches/ruby_1_8/test/ruby/test_argf.rb trunk/test/ruby/test_argf.rb Index: test/ruby/test_argf.rb =================================================================== --- test/ruby/test_argf.rb (revision 24892) +++ test/ruby/test_argf.rb (revision 24893) @@ -6,17 +6,17 @@ class TestArgf < Test::Unit::TestCase def setup - @t1 = Tempfile.new("foo") + @t1 = Tempfile.new("argf-foo") @t1.binmode @t1.puts "1" @t1.puts "2" @t1.close - @t2 = Tempfile.new("bar") + @t2 = Tempfile.new("argf-bar") @t2.binmode @t2.puts "3" @t2.puts "4" @t2.close - @t3 = Tempfile.new("baz") + @t3 = Tempfile.new("argf-baz") @t3.binmode @t3.puts "5" @t3.puts "6" @@ -32,7 +32,7 @@ end def make_tempfile - t = Tempfile.new("foo") + t = Tempfile.new("argf-foo") t.puts "foo" t.puts "bar" t.puts "baz" @@ -414,11 +414,11 @@ end end - t1 = Tempfile.new("foo") + t1 = Tempfile.new("argf-foo") t1.binmode t1.puts "foo" t1.close - t2 = Tempfile.new("bar") + t2 = Tempfile.new("argf-bar") t2.binmode t2.puts "bar" t2.close Index: ruby_1_8/test/ruby/test_argf.rb =================================================================== --- ruby_1_8/test/ruby/test_argf.rb (revision 24892) +++ ruby_1_8/test/ruby/test_argf.rb (revision 24893) @@ -5,17 +5,17 @@ class TestArgf < Test::Unit::TestCase def setup - @t1 = Tempfile.new("foo") + @t1 = Tempfile.new("argf-foo") @t1.binmode @t1.puts "1" @t1.puts "2" @t1.close - @t2 = Tempfile.new("bar") + @t2 = Tempfile.new("argf-bar") @t2.binmode @t2.puts "3" @t2.puts "4" @t2.close - @t3 = Tempfile.new("baz") + @t3 = Tempfile.new("argf-baz") @t3.binmode @t3.puts "5" @t3.puts "6" @@ -31,7 +31,7 @@ end def make_tempfile - t = Tempfile.new("foo") + t = Tempfile.new("argf-foo") t.puts "foo" t.puts "bar" t.puts "baz" @@ -261,11 +261,11 @@ end end - t1 = Tempfile.new("foo") + t1 = Tempfile.new("argf-foo") t1.binmode t1.puts "foo" t1.close - t2 = Tempfile.new("bar") + t2 = Tempfile.new("argf-bar") t2.binmode t2.puts "bar" t2.close -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/