summaryrefslogtreecommitdiffstats
path: root/hugolib/site_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-07-26 19:04:10 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-06 18:32:16 +0300
commit3a02807970e792299a80738befe32eea8d10984d (patch)
treef0886f9bf15e48280ac8bb69e1695831fcff5115 /hugolib/site_test.go
parent52bf8f90958e75007ca0a2761edc6ca331ca3280 (diff)
Add Translations and AllTranslations to Node
This commit also consolidates URLs on Node vs Page, so now .Permalink should be interoperable. Note that this implementations should be fairly short-livded, waiting for #2297, but the API should be stable.
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r--hugolib/site_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index ecf3d834d..8f2022db5 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -1448,7 +1448,10 @@ NOTE: should use the "permalinks" configuration with :filename
permalink, err = doc3.Permalink()
assert.NoError(t, err, "permalink call failed")
assert.Equal(t, "http://example.com/blog/superbob", permalink, "invalid doc3 permalink")
- assert.Equal(t, "/superbob", doc3.URL, "invalid url, was specified on doc3")
+
+ // TODO(bep) multilingo. Check this case. This has url set in frontmatter, but we must split into lang folders
+ // The assertion below was missing the /en prefix.
+ assert.Equal(t, "/en/superbob", doc3.URL(), "invalid url, was specified on doc3 TODO(bep)")
assert.Equal(t, doc2.Next, doc3, "doc3 should follow doc2, in .Next")