mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
make tempfile prefix more descriptive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60f545e2ac
commit
98697d3617
1 changed files with 6 additions and 6 deletions
|
@ -6,17 +6,17 @@ require_relative 'envutil'
|
||||||
|
|
||||||
class TestArgf < Test::Unit::TestCase
|
class TestArgf < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
@t1 = Tempfile.new("foo")
|
@t1 = Tempfile.new("argf-foo")
|
||||||
@t1.binmode
|
@t1.binmode
|
||||||
@t1.puts "1"
|
@t1.puts "1"
|
||||||
@t1.puts "2"
|
@t1.puts "2"
|
||||||
@t1.close
|
@t1.close
|
||||||
@t2 = Tempfile.new("bar")
|
@t2 = Tempfile.new("argf-bar")
|
||||||
@t2.binmode
|
@t2.binmode
|
||||||
@t2.puts "3"
|
@t2.puts "3"
|
||||||
@t2.puts "4"
|
@t2.puts "4"
|
||||||
@t2.close
|
@t2.close
|
||||||
@t3 = Tempfile.new("baz")
|
@t3 = Tempfile.new("argf-baz")
|
||||||
@t3.binmode
|
@t3.binmode
|
||||||
@t3.puts "5"
|
@t3.puts "5"
|
||||||
@t3.puts "6"
|
@t3.puts "6"
|
||||||
|
@ -32,7 +32,7 @@ class TestArgf < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def make_tempfile
|
def make_tempfile
|
||||||
t = Tempfile.new("foo")
|
t = Tempfile.new("argf-foo")
|
||||||
t.puts "foo"
|
t.puts "foo"
|
||||||
t.puts "bar"
|
t.puts "bar"
|
||||||
t.puts "baz"
|
t.puts "baz"
|
||||||
|
@ -414,11 +414,11 @@ class TestArgf < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
t1 = Tempfile.new("foo")
|
t1 = Tempfile.new("argf-foo")
|
||||||
t1.binmode
|
t1.binmode
|
||||||
t1.puts "foo"
|
t1.puts "foo"
|
||||||
t1.close
|
t1.close
|
||||||
t2 = Tempfile.new("bar")
|
t2 = Tempfile.new("argf-bar")
|
||||||
t2.binmode
|
t2.binmode
|
||||||
t2.puts "bar"
|
t2.puts "bar"
|
||||||
t2.close
|
t2.close
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue