From 2349a0ea36c4a38c170c5527554c2843488d036f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 19 Oct 2014 01:14:32 -0500 Subject: 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. --- Library/Homebrew/formula.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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: -- cgit v1.2.3