From 428ec4ec05c0f5a0c24dacee406854fff623dca4 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 9 Oct 2012 14:18:05 +0000 Subject: envutil.rb: assert_file and assert_file_not * test/ruby/envutil.rb (assert_file, assert_file_not): more descriptive assertions for File predicates. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_file.rb') diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 85cd9adaf9..f54e440313 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 + assert_file(: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) -- cgit v1.2.3