diff options
-rw-r--r-- | config/allconfig/allconfig_integration_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/config/allconfig/allconfig_integration_test.go b/config/allconfig/allconfig_integration_test.go index 1b677884f..38e763b70 100644 --- a/config/allconfig/allconfig_integration_test.go +++ b/config/allconfig/allconfig_integration_test.go @@ -161,7 +161,6 @@ title: "p3" b.AssertFileContent("public/page/2/index.html", "pagination-default") } - func TestMapUglyURLs(t *testing.T) { files := ` -- hugo.toml -- @@ -173,8 +172,6 @@ func TestMapUglyURLs(t *testing.T) { c := b.H.Configs.Base - mapUglyURLs, isMap := c.UglyURLs.(map[string]bool) - - b.Assert(isMap, qt.Equals, true) - b.Assert(mapUglyURLs["posts"], qt.Equals, true) + b.Assert(c.C.IsUglyURLSection("posts"), qt.IsTrue) + b.Assert(c.C.IsUglyURLSection("blog"), qt.IsFalse) } |