mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
Rework the Destination filesystem to make --renderStaticToDisk work
See #9626
This commit is contained in:
parent
b08193971a
commit
d070bdf10f
75 changed files with 651 additions and 566 deletions
|
@ -50,7 +50,7 @@ func TestRSSOutput(t *testing.T) {
|
|||
th.assertFileContent(filepath.Join("public", "categories", "hugo", rssURI), "<?xml", "rss version", "hugo on RSSTest")
|
||||
|
||||
// RSS Item Limit
|
||||
content := readDestination(t, fs, filepath.Join("public", rssURI))
|
||||
content := readWorkingDir(t, fs, filepath.Join("public", rssURI))
|
||||
c := strings.Count(content, "<item>")
|
||||
if c != rssLimit {
|
||||
t.Errorf("incorrect RSS item count: expected %d, got %d", rssLimit, c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue