test/etc/test_etc.rb in etc-1.4.3 vs test/etc/test_etc.rb in etc-1.4.4
- old
+ new
@@ -167,9 +167,13 @@
def test_nprocessors
n = Etc.nprocessors
assert_operator(1, :<=, n)
end
+ def test_sysconfdir
+ assert_operator(File, :absolute_path?, Etc.sysconfdir)
+ end if File.method_defined?(:absolute_path?)
+
def test_ractor
return unless Etc.passwd # => skip test if no platform support
Etc.endpwent
assert_ractor(<<~RUBY, require: 'etc')