aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorAlyssa Ross2016-09-05 14:21:00 +0100
committerAlyssa Ross2016-09-05 14:26:17 +0100
commitb90eba8ffd9549879bf4c911377d8d4cf9aa7b39 (patch)
tree7c6ac159977aaf5b5d74b60807fa57c91ec9ab6f /Library/Homebrew/test
parent65ee5408c3d000393c1b73bfe8fb731a651ee281 (diff)
downloadbrew-b90eba8ffd9549879bf4c911377d8d4cf9aa7b39.tar.bz2
Update Tap for alias_path
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/fixtures/receipt.json2
-rw-r--r--Library/Homebrew/test/test_tab.rb3
2 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/test/fixtures/receipt.json b/Library/Homebrew/test/fixtures/receipt.json
index 39dcaea07..585a4e27d 100644
--- a/Library/Homebrew/test/fixtures/receipt.json
+++ b/Library/Homebrew/test/fixtures/receipt.json
@@ -11,7 +11,7 @@
"poured_from_bottle": true,
"time": 1403827774,
"HEAD": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
- "alias_path": "test-formula",
+ "alias_path": "/usr/local/Library/Taps/homebrew/homebrew-core/Aliases/test-formula",
"stdlib": "libcxx",
"compiler": "clang",
"source": {
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb
index 85fcf4d16..be528390a 100644
--- a/Library/Homebrew/test/test_tab.rb
+++ b/Library/Homebrew/test/test_tab.rb
@@ -100,6 +100,7 @@ class TabTests < Homebrew::TestCase
def test_from_file
path = Pathname.new(TEST_DIRECTORY).join("fixtures", "receipt.json")
tab = Tab.from_file(path)
+ alias_path = Pathname.new("/usr/local/Library/Taps/homebrew/homebrew-core/Aliases/test-formula")
assert_equal @used.sort, tab.used_options.sort
assert_equal @unused.sort, tab.unused_options.sort
@@ -117,7 +118,7 @@ class TabTests < Homebrew::TestCase
assert_equal "2.14", tab.stable_version.to_s
assert_equal "2.15", tab.devel_version.to_s
assert_equal "HEAD-0000000", tab.head_version.to_s
- assert_equal "test-formula", tab.alias_path
+ assert_equal alias_path, tab.alias_path
end
def test_to_json