aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJoshua Peek2010-03-27 15:02:21 -0500
committerAdam Vandenberg2010-03-27 14:01:19 -0700
commit04855ddd484389bc8292a4d82106185466a3eb89 (patch)
tree6fde7564639a9844d7b00936aaed637e9eb2a0fe /Library/Homebrew/test
parent9fbc26a39ff86f3a9b1ea0f79b502f5736a5119b (diff)
downloadbrew-04855ddd484389bc8292a4d82106185466a3eb89.tar.bz2
fix github version parser with multidigit number
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_versions.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb
index 446b2c8ef..3e55676f5 100644
--- a/Library/Homebrew/test/test_versions.rb
+++ b/Library/Homebrew/test/test_versions.rb
@@ -74,6 +74,11 @@ class VersionTests < Test::Unit::TestCase
assert_equal '1.0.5', r.version
end
+ def test_version_github_with_high_patch_number
+ r=MockFormula.new "http://github.com/lloyd/yajl/tarball/v1.2.34"
+ assert_equal '1.2.34', r.version
+ end
+
def test_yet_another_version
r=MockFormula.new "http://example.com/mad-0.15.1b.tar.gz"
assert_equal '0.15.1b', r.version