test_versions: add elasticsearch alpha test case

This commit is contained in:
Zhiming Wang 2016-09-23 04:15:47 -04:00
parent 58a2ef9b58
commit 19dcb2cf41
No known key found for this signature in database
GPG Key ID: BBD31D4D110044B8

View File

@ -203,6 +203,10 @@ class VersionParsingTests < Homebrew::TestCase
assert_version_detected "0.7.1", "https://codeload.github.com/gsamokovarov/jump/tar.gz/v0.7.1"
end
def test_elasticsearch_alpha_style
assert_version_detected "5.0.0-alpha5", "https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/5.0.0-alpha5/elasticsearch-5.0.0-alpha5.tar.gz"
end
def test_gloox_beta_style
assert_version_detected "1.0-beta7", "http://camaya.net/download/gloox-1.0-beta7.tar.bz2"
end