aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2013-01-01 17:30:44 +0000
committerMike McQuaid2013-01-01 17:30:57 +0000
commitdf2cdc681a5baf70662b97f83638c81897a893b2 (patch)
treec3586c622ba6bc1ac59191e12a783a81a782ebcd
parent4fc76a67d4d8313edcb985a7189a107f469ca8d5 (diff)
downloadbrew-df2cdc681a5baf70662b97f83638c81897a893b2.tar.bz2
Add Apache version style test.
-rw-r--r--Library/Homebrew/test/test_versions.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb
index f5a7ac8f8..b3c709fd5 100644
--- a/Library/Homebrew/test/test_versions.rb
+++ b/Library/Homebrew/test/test_versions.rb
@@ -247,6 +247,10 @@ class VersionParsingTests < Test::Unit::TestCase
assert_version_detected '1.486', 'http://mirrors.jenkins-ci.org/war/1.486/jenkins.war'
end
+ def test_apache_version_style
+ assert_version_detected '1.2.0-rc2', 'http://www.apache.org/dyn/closer.cgi?path=/cassandra/1.2.0/apache-cassandra-1.2.0-rc2-bin.tar.gz'
+ end
+
# def test_version_ghc_style
# assert_version_detected '7.0.4', 'http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-x86_64-apple-darwin.tar.bz2'
# assert_version_detected '7.0.4', 'http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-i386-apple-darwin.tar.bz2'