Delete the classic version of AS::Dependencies.clear
This commit is contained in:
parent
08481be86e
commit
7bbe1f4bce
|
@ -62,9 +62,6 @@ module ActiveSupport # :nodoc:
|
|||
# main autoloader. Used to clear state.
|
||||
mattr_accessor :_autoloaded_tracked_classes, default: Set.new
|
||||
|
||||
def clear
|
||||
end
|
||||
|
||||
# Search for a file in autoload_paths matching the provided suffix.
|
||||
def search_for_file(path_suffix)
|
||||
path_suffix += ".rb" unless path_suffix.end_with?(".rb")
|
||||
|
|
|
@ -16,26 +16,6 @@ module ModuleWithConstant
|
|||
InheritedConstant = "Hello"
|
||||
end
|
||||
|
||||
class DependenciesTest < ActiveSupport::TestCase
|
||||
setup do
|
||||
@loaded_features_copy = $LOADED_FEATURES.dup
|
||||
$LOAD_PATH << "test"
|
||||
end
|
||||
|
||||
teardown do
|
||||
ActiveSupport::Dependencies.clear
|
||||
$LOADED_FEATURES.replace(@loaded_features_copy)
|
||||
$LOAD_PATH.pop
|
||||
end
|
||||
|
||||
def test_smart_name_error_strings
|
||||
e = assert_raise NameError do
|
||||
Object.module_eval "ImaginaryObject"
|
||||
end
|
||||
assert_includes "uninitialized constant ImaginaryObject", e.message
|
||||
end
|
||||
end
|
||||
|
||||
class RequireDependencyTest < ActiveSupport::TestCase
|
||||
setup do
|
||||
@loaded_features_copy = $LOADED_FEATURES.dup
|
||||
|
|
Loading…
Reference in New Issue