Provide a method to access test fixtures

Formulae should not require knowledge of Homebrew's internal directory
structure, and we should be able to alter it without modifying
individual formulae.
This commit is contained in:
Jack Nagel 2014-10-19 01:14:32 -05:00
parent fa06438102
commit 2349a0ea36

View File

@ -498,6 +498,10 @@ class Formula
def test
end
def test_fixtures(file)
HOMEBREW_LIBRARY.join("Homebrew", "test", "fixtures", file)
end
protected
# :startdoc: