aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-10 21:45:10 -0500
committerJack Nagel2014-06-10 21:46:29 -0500
commitdbe82909a30bde3e785d806fe0dad93e96c00d71 (patch)
treea663df152981af71a4856fc49632be2927a93017 /Library/Homebrew/test/testing_env.rb
parent9a0098dbec66bead260ccc9ebfb0008db7bc3182 (diff)
downloadbrew-dbe82909a30bde3e785d806fe0dad93e96c00d71.tar.bz2
Remove ABS__FILE constant from test environment
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
-rw-r--r--Library/Homebrew/test/testing_env.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index f0bd1726d..6b6f7ba3d 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -1,6 +1,5 @@
# Require this file to build a testing environment.
-ABS__FILE__ = File.expand_path(__FILE__)
$:.push(File.expand_path(__FILE__+'/../..'))
require 'extend/module'
@@ -55,7 +54,7 @@ end
at_exit { HOMEBREW_PREFIX.parent.rmtree }
# Test fixtures and files can be found relative to this path
-TEST_FOLDER = Pathname.new(ABS__FILE__).parent.realpath
+TEST_FOLDER = File.dirname(File.expand_path(__FILE__))
def shutup
if ARGV.verbose?