diff --git a/test/test_page.rb b/test/test_page.rb index e7e5f8c5..1d9bdbbc 100644 --- a/test/test_page.rb +++ b/test/test_page.rb @@ -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 \ No newline at end of file