diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-15 13:14:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-15 13:14:48 +0000 |
commit | 32569104e121e6dc7363acf37b5aef766bd04d4d (patch) | |
tree | 19750e8770748ef40b914b199f66e2397deb8d81 /test/ruby/test_file.rb | |
parent | a17cb167ea5e0f0690a94d8f39b821a43aebd456 (diff) | |
download | ruby-32569104e121e6dc7363acf37b5aef766bd04d4d.tar.gz |
envutil.rb: file_assertion
* test/ruby/envutil.rb (Test::Unit::Assertions#file_assertion):
rewrite file assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r-- | test/ruby/test_file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 41483cee3a..e005dc8d69 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -44,7 +44,7 @@ class TestFile < Test::Unit::TestCase bug6487 = '[ruby-core:45203]' f = Tempfile.new(__method__.to_s) f.close - assert_file(:exist?, f.path) + file_assertion.exist?(f.path) assert_nothing_raised(bug6487) {File.read(f.path, mode: 'r:utf-8')} assert_nothing_raised(bug6487) {File.read(f.path, mode: 'r:bom|utf-8')} f.close(true) @@ -356,7 +356,7 @@ class TestFile < Test::Unit::TestCase assert_raise(ArgumentError) do open(path + "\0bar", "w") {} end - assert_file_not(:exist?, path) + file_assertion.not_exist?(path) end end end |