mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove require_path from $LOADED_FEATURES
because some features are already loaded.
This commit is contained in:
parent
00bd645f09
commit
7cd97a81d1
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ module Spec
|
||||||
code << "exclude_from_load_path = File.expand_path('#{exclude_from_load_path}')"
|
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 }"
|
code << "$LOAD_PATH.delete_if { |path| File.expand_path(path) == exclude_from_load_path }"
|
||||||
end
|
end
|
||||||
|
code << "$LOADED_FEATURES.delete_if { |feature| File.basename(feature, '.*') == '#{require_path}' }"
|
||||||
code << "require '#{require_path}.rb'"
|
code << "require '#{require_path}.rb'"
|
||||||
code << "puts #{version_const}"
|
code << "puts #{version_const}"
|
||||||
run code.join("; "), *groups
|
run code.join("; "), *groups
|
||||||
|
|
Loading…
Reference in a new issue