hugolib: Add a test assertion for IsTranslated
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 21 Dec 2016 09:17:05 +0000 (10:17 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 21 Dec 2016 09:17:05 +0000 (10:17 +0100)
See #2812

hugolib/hugo_sites_build_test.go

index 59670dd31793300a8261d9201cfbc4ee005e8bd4..242774a9b09f8149a3e29883bb403dc4e9b45e3d 100644 (file)
@@ -213,6 +213,8 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) {
        }
 
        enSite := sites.Sites[0]
+       enSiteHome := enSite.getPage(KindHome)
+       require.True(t, enSiteHome.IsTranslated())
 
        assert.Equal(t, "en", enSite.Language.Lang)