diff options
| author | Jack Nagel | 2014-10-19 01:14:32 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-19 01:18:26 -0500 |
| commit | 2349a0ea36c4a38c170c5527554c2843488d036f (patch) | |
| tree | 44d318a89ac91472d18e41e92f99dbd41d398483 /Library/Homebrew | |
| parent | fa06438102f3409ff9c8bcd55096338e416b889f (diff) | |
| download | brew-2349a0ea36c4a38c170c5527554c2843488d036f.tar.bz2 | |
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.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index c0fb1d3e6..956056244 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -498,6 +498,10 @@ class Formula def test end + def test_fixtures(file) + HOMEBREW_LIBRARY.join("Homebrew", "test", "fixtures", file) + end + protected # :startdoc: |
