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,17 +159,17 @@ class BeerTasting < Test::Unit::TestCase
abcd.cp HOMEBREW_CACHE
assert orig_abcd.exist?
HOMEBREW_CACHE.chmod_R 0777
end
end
end
def test_pathname_properties
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
end
end
end
def test_class_naming