aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMax Howell2009-10-19 13:05:47 +0100
committerMax Howell2009-10-19 13:48:34 +0100
commit02e34e1e44bb9fc98ca7b4365e095c64adeca0d5 (patch)
tree5cd57c7277bc544248a0f1fabce190f1969902e8 /Library/Homebrew/test
parent7189bc2ddc1e74d706e5cc86e20eb597b0d4d26f (diff)
downloadhomebrew-02e34e1e44bb9fc98ca7b4365e095c64adeca0d5.tar.bz2
Camelcase class names around the . from filenames
Eg. shell.fm -> ShellFm
Diffstat (limited to 'Library/Homebrew/test')
-rwxr-xr-xLibrary/Homebrew/test/unittest.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/unittest.rb b/Library/Homebrew/test/unittest.rb
index f14e84e03..e6bd27387 100755
--- a/Library/Homebrew/test/unittest.rb
+++ b/Library/Homebrew/test/unittest.rb
@@ -593,6 +593,11 @@ class BeerTasting <Test::Unit::TestCase
end
end
+ def test_class_names
+ assert_equal 'ShellFm', Formula.class_s('shell.fm')
+ assert_equal 'Fooxx', Formula.class_s('foo++')
+ end
+
def test_angband_version_style
f = MockFormula.new 'http://rephial.org/downloads/3.0/angband-3.0.9b-src.tar.gz'
assert_equal '3.0.9b', f.version