aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-30 23:33:20 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-02 17:24:34 +0900
commit1a5205536f0c0d6021450b11722919211847df86 (patch)
treeee2f59c0b946faeb406e16715df967e05d7012c2 /test
parent9e94cd18fcf193a9f87b908b7130123602a7d800 (diff)
downloadruby-1a5205536f0c0d6021450b11722919211847df86.tar.gz
Removed deprecated Dir.exists? and File.exists?
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_exception.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 0333fd52ea..c611afa4f9 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -961,13 +961,17 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status|
end
def test_warn_deprecated_backwards_compatibility_category
- warning = capture_warning_warn { Dir.exists?("non-existent") }
+ skip "no method to test"
+
+ warning = capture_warning_warn { }
assert_match(/deprecated/, warning[0])
end
def test_warn_deprecated_category
- warning = capture_warning_warn(category: true) { Dir.exists?("non-existent") }
+ skip "no method to test"
+
+ warning = capture_warning_warn(category: true) { }
assert_equal :deprecated, warning[0][1]
end