From 4e01ab342a4b1478255eee09ddbb5e9fe46a88b9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 2 Dec 2020 19:11:01 +0900 Subject: Revert "Removed deprecated Dir.exists? and File.exists?" This reverts commit 1a5205536f0c0d6021450b11722919211847df86. --- test/ruby/test_exception.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index c611afa4f9..0333fd52ea 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -961,17 +961,13 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| end def test_warn_deprecated_backwards_compatibility_category - skip "no method to test" - - warning = capture_warning_warn { } + warning = capture_warning_warn { Dir.exists?("non-existent") } assert_match(/deprecated/, warning[0]) end def test_warn_deprecated_category - skip "no method to test" - - warning = capture_warning_warn(category: true) { } + warning = capture_warning_warn(category: true) { Dir.exists?("non-existent") } assert_equal :deprecated, warning[0][1] end -- cgit v1.2.3