зеркало из https://github.com/github/ruby.git
* test/test_tempfile.rb: use assert_file for more descriptive message.
following r49131. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e717341ea6
Коммит
dd2d43d9bd
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Jan 4 13:36:56 2015 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
|
||||||
|
|
||||||
|
* test/test_tempfile.rb: use assert_file for more descriptive message.
|
||||||
|
following r49131.
|
||||||
|
|
||||||
Sun Jan 4 13:05:09 2015 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
|
Sun Jan 4 13:05:09 2015 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
|
||||||
|
|
||||||
* string.c: improve docs for String#<=>. [ruby-core:65399][Feature #10322]
|
* string.c: improve docs for String#<=>. [ruby-core:65399][Feature #10322]
|
||||||
|
|
|
@ -73,7 +73,7 @@ class TestTempfile < Test::Unit::TestCase
|
||||||
path = t.path
|
path = t.path
|
||||||
|
|
||||||
t.close
|
t.close
|
||||||
assert File.exist?(path)
|
assert_file.exist?(path)
|
||||||
|
|
||||||
t.unlink
|
t.unlink
|
||||||
assert !File.exist?(path)
|
assert !File.exist?(path)
|
||||||
|
@ -133,7 +133,7 @@ class TestTempfile < Test::Unit::TestCase
|
||||||
File.open(path, "w").close
|
File.open(path, "w").close
|
||||||
begin
|
begin
|
||||||
t.close(true)
|
t.close(true)
|
||||||
assert File.exist?(path)
|
assert_file.exist?(path)
|
||||||
ensure
|
ensure
|
||||||
File.unlink(path) rescue nil
|
File.unlink(path) rescue nil
|
||||||
end
|
end
|
||||||
|
@ -155,7 +155,7 @@ class TestTempfile < Test::Unit::TestCase
|
||||||
File.open(path, "w").close
|
File.open(path, "w").close
|
||||||
begin
|
begin
|
||||||
t.close!
|
t.close!
|
||||||
assert File.exist?(path)
|
assert_file.exist?(path)
|
||||||
ensure
|
ensure
|
||||||
File.unlink(path) rescue nil
|
File.unlink(path) rescue nil
|
||||||
end
|
end
|
||||||
|
@ -169,7 +169,7 @@ puts path
|
||||||
file.close!
|
file.close!
|
||||||
File.open(path, "w").close
|
File.open(path, "w").close
|
||||||
EOS
|
EOS
|
||||||
assert File.exist?(filename)
|
assert_file.exist?(filename)
|
||||||
File.unlink(filename)
|
File.unlink(filename)
|
||||||
assert_nil error
|
assert_nil error
|
||||||
end
|
end
|
||||||
|
@ -183,7 +183,7 @@ File.open(path, "w").close
|
||||||
EOS
|
EOS
|
||||||
if !filename.empty?
|
if !filename.empty?
|
||||||
# POSIX unlink semantics supported, continue with test
|
# POSIX unlink semantics supported, continue with test
|
||||||
assert File.exist?(filename)
|
assert_file.exist?(filename)
|
||||||
File.unlink(filename)
|
File.unlink(filename)
|
||||||
end
|
end
|
||||||
assert_nil error
|
assert_nil error
|
||||||
|
|
Загрузка…
Ссылка в новой задаче