diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-11-30 23:33:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-12-28 18:36:30 +0900 |
commit | bf97415c02b11a8949f715431aca9eeb6311add2 (patch) | |
tree | b3cba65dfb9ed0b7af246dd5d6f4f4e92b043fc8 /test/ruby/test_exception.rb | |
parent | 0a47896d201b91555d2216bc62125825b6b220a1 (diff) |
Removed deprecated Dir.exists? and File.exists?
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5352
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 4a08829473..4ddd6011b9 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -1064,13 +1064,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 |