require 'test/unit' class TestProcess < Test::Unit::TestCase def test_rlimit begin Process.getrlimit(nil) rescue NotImplementedError assert_raise(NotImplementedError) { Process.setrlimit } rescue TypeError assert_raise(ArgumentError) { Process.setrlimit } end end end