diff options
| author | Adam Vandenberg | 2010-03-02 10:22:52 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-06 08:27:11 -0700 |
| commit | 62de8aa663de0f4b32009e96c2fa226b218acb52 (patch) | |
| tree | ef1b3f026e6e92c4ac5b142068b40d27c252041c /Library/Homebrew | |
| parent | ccdffb2c31d00ea0d79b04d1e63d1085233012a0 (diff) | |
| download | brew-62de8aa663de0f4b32009e96c2fa226b218acb52.tar.bz2 | |
Merge Formula class name tests
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/test_bucket.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Homebrew/test/test_bucket.rb b/Library/Homebrew/test/test_bucket.rb index d2826efce..217689ab3 100644 --- a/Library/Homebrew/test/test_bucket.rb +++ b/Library/Homebrew/test/test_bucket.rb @@ -204,15 +204,12 @@ class BeerTasting < Test::Unit::TestCase assert_raises(RuntimeError) {Pathname.getwd.install 'non_existant_file'} end - def test_formula_class_func - assert_equal Formula.class_s('s-lang'), 'SLang' - assert_equal Formula.class_s('pkg-config'), 'PkgConfig' - assert_equal Formula.class_s('foo_bar'), 'FooBar' - end - - def test_class_names + def test_class_naming assert_equal 'ShellFm', Formula.class_s('shell.fm') assert_equal 'Fooxx', Formula.class_s('foo++') + assert_equal 'SLang', Formula.class_s('s-lang') + assert_equal 'PkgConfig', Formula.class_s('pkg-config') + assert_equal 'FooBar', Formula.class_s('foo_bar') end def test_ENV_options |
