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'