diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-08-08 13:55:18 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-06 18:32:18 +0300 |
commit | 8da040342eb0a3098e54dc6ed2cb10bac6173230 (patch) | |
tree | 6ebd4750103cb1ac8a2b1aa6ec4bdb8e85d46ea8 /hugolib/site_test.go | |
parent | d953e39e63deac608e7f1442a6c0d5b2fe56180e (diff) |
Render main content language in root by default
Fixes #2312
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r-- | hugolib/site_test.go | 8 |
1 files changed, 1 insertions, 7 deletions
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) |