hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 8d0917af0ab257994fc923eaef20453f5f1b580b
parent 718c0e14146c817401ca888ffae91a6603935457
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu, 27 Apr 2017 13:00:24 +0200

hubolib: Narrow a test assertion

Diffstat:
Mhugolib/page_paths_test.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hugolib/page_paths_test.go b/hugolib/page_paths_test.go
@@ -149,7 +149,7 @@ func TestPageTargetPath(t *testing.T) {
 						expected := test.expected
 
 						// TODO(bep) simplify
-						if test.d.BaseName == test.d.Type.BaseName {
+						if test.d.Kind == KindPage && test.d.BaseName == test.d.Type.BaseName {
 
 						} else if test.d.Kind == KindHome && test.d.Type.Path != "" {
 						} else if (!strings.HasPrefix(expected, "/index") || test.d.Addends != "") && test.d.URL == "" && isUgly {