From 8da040342eb0a3098e54dc6ed2cb10bac6173230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 8 Aug 2016 13:55:18 +0200 Subject: Render main content language in root by default Fixes #2312 --- hugolib/site_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'hugolib/site_test.go') diff --git a/hugolib/site_test.go b/hugolib/site_test.go index 3f6e25bad..8360d7b94 100644 --- a/hugolib/site_test.go +++ b/hugolib/site_test.go @@ -317,7 +317,6 @@ THE END.`, refShortcode)), // Issue #939 // Issue #1923 func TestShouldAlwaysHaveUglyURLs(t *testing.T) { - hugofs.InitMemFs() for _, uglyURLs := range []bool{true, false} { doTestShouldAlwaysHaveUglyURLs(t, uglyURLs) } @@ -383,12 +382,7 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) { } for _, test := range tests { - file, err := hugofs.Destination().Open(test.doc) - if err != nil { - t.Fatalf("Did not find %s in target: %s", test.doc, err) - } - - content := helpers.ReaderToString(file) + content := readDestination(t, test.doc) if content != test.expected { t.Errorf("%s content expected:\n%q\ngot:\n%q", test.doc, test.expected, content) -- cgit v1.2.3