spec icon indicating copy to clipboard operation
spec copied to clipboard

Specs for deprecated methods

Open andrykonchin opened this issue 5 years ago • 1 comments

There are some deprecated/obsolete methods like File.exists?, Thread#safe_level etc in the core library.

Looks like they aren't covered with tests there and moreover some existing specs were deleted recently - File.exists?, Dir.exists? and FileTest.exists?` (commit).

So I am wondering whether it is a well-considered decision or it's unintentional situation. I believe that as far as these methods are still available in MRI they should be a part of the specification.

andrykonchin avatar Jul 19 '20 19:07 andrykonchin

I agree, the specs should remain as long as there is a non-EOL version that supports it.

We just need to find a way to silence those deprecation warnings for the deprecated but ideally not for the non-deprecated methods.

eregon avatar Jul 20 '20 16:07 eregon