diff options
| author | Adam Vandenberg | 2010-03-02 10:22:52 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-06 08:27:11 -0700 |
| commit | 48980c06c15fb73734bbd3b6ec2726c4b33e390f (patch) | |
| tree | 36f9c4add662ceed00cf50c30f969062b4f82f39 /Library | |
| parent | 5dd30cbf398e5495fad8d05fbb315c0af9a0dc9a (diff) | |
| download | homebrew-48980c06c15fb73734bbd3b6ec2726c4b33e390f.tar.bz2 | |
Merge Formula class name tests
Diffstat (limited to 'Library')
| -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 |
