shithub: hugo

Download patch

ref: 714d4a9a974a3575b243765a832ae3ff959c1751
parent: 44edd9382a3b9f84145ad8a8137a810c3dd5111c
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Jun 18 09:58:54 EDT 2016

Fix failing Windows test

Closes #2225

--- a/hugolib/embedded_shortcodes_test.go
+++ b/hugolib/embedded_shortcodes_test.go
@@ -18,6 +18,7 @@
 	"html/template"
 	"net/url"
 	"os"
+	"path/filepath"
 	"regexp"
 	"testing"
 
@@ -48,7 +49,7 @@
 		expectedBase = baseURL
 	}
 
-	path := "blog/post.md"
+	path := filepath.FromSlash("blog/post.md")
 	in := fmt.Sprintf(`{{< %s "%s" >}}`, refShortcode, path)
 	expected := fmt.Sprintf(`%s/simple/url/`, expectedBase)