diff options
| author | Vlad Shablinsky | 2016-07-27 17:44:16 +0300 | 
|---|---|---|
| committer | Xu Cheng | 2016-08-06 21:25:56 +0800 | 
| commit | 1114219384baf0948cabcce8752a4537896f7704 (patch) | |
| tree | 4023eeb517cc6ec37f597e7a62f34a455ed87c6d /Library/Homebrew/test/test_tab.rb | |
| parent | 42bc623a277c4379255fc86ee59be77cf9c63392 (diff) | |
| download | brew-1114219384baf0948cabcce8752a4537896f7704.tar.bz2 | |
Add tests for Tab versions
Diffstat (limited to 'Library/Homebrew/test/test_tab.rb')
| -rw-r--r-- | Library/Homebrew/test/test_tab.rb | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb index 2f22786bc..8a261a46a 100644 --- a/Library/Homebrew/test/test_tab.rb +++ b/Library/Homebrew/test/test_tab.rb @@ -20,6 +20,11 @@ class TabTests < Homebrew::TestCase                       "tap" => "homebrew/core",                       "path" => nil,                       "spec" => "stable", +                     "versions" => { +                       "stable" => "0.10", +                       "devel" => "0.14", +                       "head" => "HEAD-1111111", +                     }                     })    end @@ -35,6 +40,9 @@ class TabTests < Homebrew::TestCase      assert_nil tab.tap      assert_nil tab.time      assert_nil tab.HEAD +    assert_nil tab.stable_version +    assert_nil tab.devel_version +    assert_nil tab.head_version      assert_equal DevelopmentTools.default_compiler, tab.cxxstdlib.compiler      assert_nil tab.cxxstdlib.type    end @@ -105,6 +113,9 @@ class TabTests < Homebrew::TestCase      assert_equal TEST_SHA1, tab.HEAD      assert_equal :clang, tab.cxxstdlib.compiler      assert_equal :libcxx, tab.cxxstdlib.type +    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    end    def test_to_json @@ -119,6 +130,9 @@ class TabTests < Homebrew::TestCase      assert_equal @tab.HEAD, tab.HEAD      assert_equal @tab.compiler, tab.compiler      assert_equal @tab.stdlib, tab.stdlib +    assert_equal @tab.stable_version, tab.stable_version +    assert_equal @tab.devel_version, tab.devel_version +    assert_equal @tab.head_version, tab.head_version    end    def test_remap_deprecated_options  | 
