fix test_formula_pin

Closes Homebrew/homebrew#46468.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-11-29 15:45:59 +08:00
parent b124c81697
commit c0f33d650f

View File

@ -10,6 +10,14 @@ class FormulaPinTests < Homebrew::TestCase
def rack def rack
Pathname.new("#{HOMEBREW_CELLAR}/#{name}") Pathname.new("#{HOMEBREW_CELLAR}/#{name}")
end end
def installed_prefixes
rack.directory? ? rack.subdirs : []
end
def installed_kegs
installed_prefixes.map { |d| Keg.new d }
end
end end
def setup def setup