aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_tab.rb
diff options
context:
space:
mode:
authorAlyssa Ross2016-09-03 21:10:44 +0100
committerAlyssa Ross2016-09-03 21:16:43 +0100
commit0ef3e1e0dcbcd5aa55408fe81d23613e1c2c5e79 (patch)
tree15c68c1d02e144cb86c32bc870cf75cc6547d8e0 /Library/Homebrew/test/test_tab.rb
parent9fd97dd3cf26b6644a9f808945869b2af44db26e (diff)
downloadbrew-0ef3e1e0dcbcd5aa55408fe81d23613e1c2c5e79.tar.bz2
Preserve alias when installing formulae
Part of #567
Diffstat (limited to 'Library/Homebrew/test/test_tab.rb')
-rw-r--r--Library/Homebrew/test/test_tab.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb
index 8a261a46a..dd61fd57b 100644
--- a/Library/Homebrew/test/test_tab.rb
+++ b/Library/Homebrew/test/test_tab.rb
@@ -43,6 +43,7 @@ class TabTests < Homebrew::TestCase
assert_nil tab.stable_version
assert_nil tab.devel_version
assert_nil tab.head_version
+ assert_nil tab.install_name
assert_equal DevelopmentTools.default_compiler, tab.cxxstdlib.compiler
assert_nil tab.cxxstdlib.type
end
@@ -116,6 +117,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.install_name
end
def test_to_json
@@ -133,6 +135,7 @@ class TabTests < Homebrew::TestCase
assert_equal @tab.stable_version, tab.stable_version
assert_equal @tab.devel_version, tab.devel_version
assert_equal @tab.head_version, tab.head_version
+ assert_equal @tab.install_name, tab.install_name
end
def test_remap_deprecated_options