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
commit2ae78fd9a2dab50f793b533256afd3a1700555cd (patch)
tree6b65aab51a8d702d49af4d4983fd8ecc790d081a /Library
parenta4cc482162b20880b49b4974100c9ae6a68c2818 (diff)
downloadhomebrew-2ae78fd9a2dab50f793b533256afd3a1700555cd.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