зеркало из https://github.com/github/ruby.git
Remove require_path from $LOADED_FEATURES
because some features are already loaded.
This commit is contained in:
Родитель
00bd645f09
Коммит
7cd97a81d1
|
@ -127,6 +127,7 @@ module Spec
|
|||
code << "exclude_from_load_path = File.expand_path('#{exclude_from_load_path}')"
|
||||
code << "$LOAD_PATH.delete_if { |path| File.expand_path(path) == exclude_from_load_path }"
|
||||
end
|
||||
code << "$LOADED_FEATURES.delete_if { |feature| File.basename(feature, '.*') == '#{require_path}' }"
|
||||
code << "require '#{require_path}.rb'"
|
||||
code << "puts #{version_const}"
|
||||
run code.join("; "), *groups
|
||||
|
|
Загрузка…
Ссылка в новой задаче