diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 93a31481df..6f3fd6e488 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -43,6 +43,10 @@ class Formulary end everything.sort end + + def self.paths + Dir["#{HOMEBREW_REPOSITORY}/Library/Formula/*.rb"] + end def self.read name Formulary.names.each do |f| diff --git a/Library/Homebrew/test/formula_test.rb b/Library/Homebrew/test/formula_test.rb index 50c487a6d6..71f4ea732c 100755 --- a/Library/Homebrew/test/formula_test.rb +++ b/Library/Homebrew/test/formula_test.rb @@ -10,25 +10,9 @@ require 'formula' require 'utils' -# NOTE duplicated in unittest.rb (we need to refactor the tests anyway) -def nostdout - if ARGV.include? '-V' - yield - end - begin - require 'stringio' - tmpo=$stdout - tmpe=$stderr - $stdout=StringIO.new - yield - ensure - $stdout=tmpo - end -end - - -class FormulaNames