add test for BlobEntry.normalize_dir

This commit is contained in:
rick
2010-12-31 12:25:18 -06:00
parent 491eee7ebd
commit e641f69589
+8
View File
@@ -134,4 +134,12 @@ context "Page" do
assert_equal '', Gollum::Page.cname(nil)
assert_equal '', Gollum::Page.cname(3)
end
test "normalize_dir" do
assert_equal "", Gollum::BlobEntry.normalize_dir("")
assert_equal "", Gollum::BlobEntry.normalize_dir(".")
assert_equal "", Gollum::BlobEntry.normalize_dir("/")
assert_equal "/foo", Gollum::BlobEntry.normalize_dir("foo")
assert_equal "/foo", Gollum::BlobEntry.normalize_dir("/foo")
end
end