Don't expose the dependency cache data structure
This commit is contained in:
parent
07e00061a7
commit
4cbae37d62
@ -23,6 +23,10 @@ class DependencyCollector
|
||||
|
||||
CACHE = {}
|
||||
|
||||
def self.clear_cache
|
||||
CACHE.clear
|
||||
end
|
||||
|
||||
attr_reader :deps, :requirements
|
||||
|
||||
def initialize
|
||||
|
||||
@ -16,7 +16,7 @@ class DependencyCollectorTests < Homebrew::TestCase
|
||||
end
|
||||
|
||||
def teardown
|
||||
DependencyCollector::CACHE.clear
|
||||
DependencyCollector.clear_cache
|
||||
end
|
||||
|
||||
def test_dependency_creation
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user