fix test_formula_pin
Closes Homebrew/homebrew#46468. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
b124c81697
commit
c0f33d650f
@ -10,6 +10,14 @@ class FormulaPinTests < Homebrew::TestCase
|
||||
def rack
|
||||
Pathname.new("#{HOMEBREW_CELLAR}/#{name}")
|
||||
end
|
||||
|
||||
def installed_prefixes
|
||||
rack.directory? ? rack.subdirs : []
|
||||
end
|
||||
|
||||
def installed_kegs
|
||||
installed_prefixes.map { |d| Keg.new d }
|
||||
end
|
||||
end
|
||||
|
||||
def setup
|
||||
|
Loading…
x
Reference in New Issue
Block a user