aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-10-23 16:40:55 +0100
committerMax Howell2009-10-23 19:22:51 +0100
commit25f76f269105ae3539b79f94153b2fe64b01a60e (patch)
tree830b4f8a2c3f885c7d05551ce616fef78cc7db49 /Library
parentb5fd41048ba027ca72e2ce58cdc9a4c0c10ccfeb (diff)
downloadhomebrew-25f76f269105ae3539b79f94153b2fe64b01a60e.tar.bz2
The tests need the actual optparse apparently
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/test/formula_test.rb2
-rwxr-xr-xLibrary/Homebrew/test/unittest.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/formula_test.rb b/Library/Homebrew/test/formula_test.rb
index 15cafae13..c79c62571 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 e6bd27387..923080ea8 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'