Feature #16043 » 0001-LOAD_PATH.resolve_feature_path-should-not-raise.patch
load.c | ||
---|---|---|
sym = ID2SYM(rb_intern("so"));
|
||
break;
|
||
default:
|
||
load_failed(fname);
|
||
return Qnil;
|
||
}
|
||
return rb_ary_new_from_args(2, sym, path);
|
test/ruby/test_require.rb | ||
---|---|---|
$:.replace(paths)
|
||
$".replace(loaded)
|
||
end
|
||
def test_resolve_feature_path_with_missing_feature
|
||
assert_nil($LOAD_PATH.resolve_feature_path("superkalifragilisticoespialidoso"))
|
||
end
|
||
end
|
||
end
|