Don't expose the dependency cache data structure

This commit is contained in:
Jack Nagel 2014-07-02 15:10:07 -05:00
parent 07e00061a7
commit 4cbae37d62
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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