aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-09 11:29:18 -0500
committerJack Nagel2013-08-09 20:50:42 -0500
commitbca37554b7f0f7fbd671ee714e435445141137f0 (patch)
tree42dc7387ff9af90d4b2c5f060d9552232388d9ed /Library
parent1074221a220b663b01b5fbfc41e847f662f4aac0 (diff)
downloadbrew-bca37554b7f0f7fbd671ee714e435445141137f0.tar.bz2
Remove hardcoded paths in keg tests
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_keg.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_keg.rb b/Library/Homebrew/test/test_keg.rb
index df0ea3fea..f9748277a 100644
--- a/Library/Homebrew/test/test_keg.rb
+++ b/Library/Homebrew/test/test_keg.rb
@@ -40,7 +40,7 @@ class LinkTests < Test::Unit::TestCase
assert !@keg.linked?
['hiworld', 'helloworld', 'goodbye_cruel_world'].each do |file|
- assert_match "/private/tmp/testbrew/prefix/bin/#{file}", $stdout.string
+ assert_match "#{HOMEBREW_PREFIX}/bin/#{file}", $stdout.string
end
assert_equal 3, $stdout.string.lines.count
end
@@ -81,7 +81,7 @@ class LinkTests < Test::Unit::TestCase
assert_equal 0, @keg.link(@mode)
assert !@keg.linked?
- assert_equal "/private/tmp/testbrew/prefix/bin/helloworld\n", $stdout.string
+ assert_equal "#{HOMEBREW_PREFIX}/bin/helloworld\n", $stdout.string
end
def teardown