aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2013-08-03 20:02:10 -0700
committerMike McQuaid2013-08-03 22:27:42 -0700
commitcfdd23b3efcfc994908dfb6792c8d062a19f12f1 (patch)
tree56cb67c1eb66d20e4774868c1082696bd2397b5b /Library/Homebrew/test
parent705a24871993f9eeac108e38f0e587836e4a087a (diff)
downloadbrew-cfdd23b3efcfc994908dfb6792c8d062a19f12f1.tar.bz2
bottles: use dedicated version class.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_bottle_versions.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_bottle_versions.rb b/Library/Homebrew/test/test_bottle_versions.rb
new file mode 100644
index 000000000..f418912b7
--- /dev/null
+++ b/Library/Homebrew/test/test_bottle_versions.rb
@@ -0,0 +1,8 @@
+require 'testing_env'
+require 'bottle_version'
+
+class BottleVersionParsingTests < Test::Unit::TestCase
+ def assert_version_detected expected, path
+ assert_equal expected, BottleVersion.parse(path).to_s
+ end
+end