From d967421c6e8f188bc19d894b9c953be2a6abb1c5 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 23 Oct 2009 16:40:55 +0100 Subject: [PATCH] The tests need the actual optparse apparently --- Library/Homebrew/test/formula_test.rb | 2 +- Library/Homebrew/test/unittest.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/test/formula_test.rb b/Library/Homebrew/test/formula_test.rb index 15cafae137..c79c62571a 100755 --- a/Library/Homebrew/test/formula_test.rb +++ b/Library/Homebrew/test/formula_test.rb @@ -3,7 +3,7 @@ # support, and with no warranty, express or implied, as to its usefulness for # any purpose. -$:.unshift File.dirname(__FILE__)+'/..' +$:.push(File.expand_path(__FILE__+'/../..')) require 'test/unit' require 'global' require 'formula' diff --git a/Library/Homebrew/test/unittest.rb b/Library/Homebrew/test/unittest.rb index e6bd273876..923080ea8a 100755 --- a/Library/Homebrew/test/unittest.rb +++ b/Library/Homebrew/test/unittest.rb @@ -5,7 +5,7 @@ ABS__FILE__=File.expand_path(__FILE__) -$:.unshift File.dirname(ABS__FILE__)+'/..' +$:.push(File.expand_path(__FILE__+'/../..')) require 'extend/pathname' require 'utils' require 'hardware'