diff options
author | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-04 04:41:04 +0000 |
---|---|---|
committer | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-04 04:41:04 +0000 |
commit | dd2d43d9bd3aaf7a932c7e00bfc278db5d685083 (patch) | |
tree | a56b919bb79046b9b18c823066bcf69168a19b02 /test/test_tempfile.rb | |
parent | e717341ea6581cce6cc7a5701762cf4c1537c328 (diff) | |
download | ruby-dd2d43d9bd3aaf7a932c7e00bfc278db5d685083.tar.gz |
* 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
Diffstat (limited to 'test/test_tempfile.rb')
-rw-r--r-- | test/test_tempfile.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index f1bf1ae803..5904050dd7 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -73,7 +73,7 @@ class TestTempfile < Test::Unit::TestCase path = t.path t.close - assert File.exist?(path) + assert_file.exist?(path) t.unlink assert !File.exist?(path) @@ -133,7 +133,7 @@ class TestTempfile < Test::Unit::TestCase File.open(path, "w").close begin t.close(true) - assert File.exist?(path) + assert_file.exist?(path) ensure File.unlink(path) rescue nil end @@ -155,7 +155,7 @@ class TestTempfile < Test::Unit::TestCase File.open(path, "w").close begin t.close! - assert File.exist?(path) + assert_file.exist?(path) ensure File.unlink(path) rescue nil end @@ -169,7 +169,7 @@ puts path file.close! File.open(path, "w").close EOS - assert File.exist?(filename) + assert_file.exist?(filename) File.unlink(filename) assert_nil error end @@ -183,7 +183,7 @@ File.open(path, "w").close EOS if !filename.empty? # POSIX unlink semantics supported, continue with test - assert File.exist?(filename) + assert_file.exist?(filename) File.unlink(filename) end assert_nil error |