aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2013-06-20 13:07:59 +0100
committerMike McQuaid2013-06-20 13:07:59 +0100
commit4e9c357733374500f64ce5d1e140e6cce9a4439b (patch)
tree9a12616bf5a06da7f76d51a8182d5466b0e665b8 /Library/Homebrew/test
parenta5e26485f05467ca06cc3abf5c5f55b6ba6685c4 (diff)
downloadhomebrew-4e9c357733374500f64ce5d1e140e6cce9a4439b.tar.bz2
perforce: add version detection regex.
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 c5671ce82..e1e4e2dcf 100644
--- a/Library/Homebrew/test/test_versions.rb
+++ b/Library/Homebrew/test/test_versions.rb
@@ -297,4 +297,9 @@ class VersionParsingTests < Test::Unit::TestCase
assert_version_detected '2.4c',
'http://loop-aes.sourceforge.net/aespipe/aespipe-v2.4c.tar.bz2'
end
+
+ def test_perforce_style
+ assert_version_detected '2013.1.610569-x86_64',
+ '/usr/local/perforce-2013.1.610569-x86_64.mountain_lion.bottle.tar.gz'
+ end
end