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