aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb4
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