Move Pathename property tests to separate file.

This commit is contained in:
Adam Vandenberg 2010-03-09 22:15:52 -08:00
parent a7d74df430
commit e4766639dc

View File

@ -159,19 +159,19 @@ class BeerTasting < Test::Unit::TestCase
abcd.cp HOMEBREW_CACHE abcd.cp HOMEBREW_CACHE
assert orig_abcd.exist? assert orig_abcd.exist?
foo1=HOMEBREW_CACHE+'foo-0.1.tar.gz'
FileUtils.cp ABS__FILE__, foo1
assert foo1.file?
assert_equal '.tar.gz', foo1.extname
assert_equal 'foo-0.1', foo1.stem
assert_equal '0.1', foo1.version
HOMEBREW_CACHE.chmod_R 0777 HOMEBREW_CACHE.chmod_R 0777
end end
end end
end end
def test_pathname_properties
foo1=HOMEBREW_CACHE+'foo-0.1.tar.gz'
assert_equal '.tar.gz', foo1.extname
assert_equal 'foo-0.1', foo1.stem
assert_equal '0.1', foo1.version
end
def test_class_naming def test_class_naming
assert_equal 'ShellFm', Formula.class_s('shell.fm') assert_equal 'ShellFm', Formula.class_s('shell.fm')
assert_equal 'Fooxx', Formula.class_s('foo++') assert_equal 'Fooxx', Formula.class_s('foo++')