diff options
| author | Jack Nagel | 2015-03-13 00:41:10 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-03-14 21:14:37 -0400 |
| commit | abb0cb3aa075db2438b979d2825557d19b521b01 (patch) | |
| tree | 04253a56da6a3ce2c1cfd7617dc98bf534be7ae7 /Library/Homebrew/test | |
| parent | db05618561550c36d2d41b0ff5e6fea4bd6019d2 (diff) | |
| download | brew-abb0cb3aa075db2438b979d2825557d19b521b01.tar.bz2 | |
Switch to a more useful serialization of tap info
Closes Homebrew/homebrew#37383.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_tab.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb index e6116b057..eebfe9be3 100644 --- a/Library/Homebrew/test/test_tab.rb +++ b/Library/Homebrew/test/test_tab.rb @@ -12,12 +12,14 @@ class TabTests < Homebrew::TestCase "unused_options" => @unused.as_flags, "built_as_bottle" => false, "poured_from_bottle" => true, - "tapped_from" => "Homebrew/homebrew", "time" => nil, "HEAD" => TEST_SHA1, "compiler" => "clang", "stdlib" => "libcxx", - "source" => { "path" => nil }, + "source" => { + "tap" => "Homebrew/homebrew", + "path" => nil, + }, }) end @@ -27,7 +29,7 @@ class TabTests < Homebrew::TestCase assert_empty tab.used_options refute_predicate tab, :built_as_bottle refute_predicate tab, :poured_from_bottle - assert_empty tab.tapped_from + assert_nil tab.tap assert_nil tab.time assert_nil tab.HEAD assert_equal MacOS.default_compiler, tab.cxxstdlib.compiler @@ -58,7 +60,7 @@ class TabTests < Homebrew::TestCase def test_other_attributes assert_equal TEST_SHA1, @tab.HEAD - assert_equal "Homebrew/homebrew", @tab.tapped_from + assert_equal "Homebrew/homebrew", @tab.tap assert_nil @tab.time refute_predicate @tab, :built_as_bottle assert_predicate @tab, :poured_from_bottle @@ -72,7 +74,7 @@ class TabTests < Homebrew::TestCase assert_equal @unused.sort, tab.unused_options.sort refute_predicate tab, :built_as_bottle assert_predicate tab, :poured_from_bottle - assert_equal "Homebrew/homebrew", tab.tapped_from + assert_equal "Homebrew/homebrew", tab.tap refute_nil tab.time assert_equal TEST_SHA1, tab.HEAD assert_equal :clang, tab.cxxstdlib.compiler @@ -85,7 +87,7 @@ class TabTests < Homebrew::TestCase assert_equal @tab.unused_options.sort, tab.unused_options.sort assert_equal @tab.built_as_bottle, tab.built_as_bottle assert_equal @tab.poured_from_bottle, tab.poured_from_bottle - assert_equal @tab.tapped_from, tab.tapped_from + assert_equal @tab.tap, tab.tap assert_equal @tab.time, tab.time assert_equal @tab.HEAD, tab.HEAD assert_equal @tab.compiler, tab.compiler |
