aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-10-19 01:14:32 -0500
committerJack Nagel2014-10-19 01:18:26 -0500
commit2349a0ea36c4a38c170c5527554c2843488d036f (patch)
tree44d318a89ac91472d18e41e92f99dbd41d398483 /Library/Homebrew
parentfa06438102f3409ff9c8bcd55096338e416b889f (diff)
downloadbrew-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.rb4
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: