Fix failing Windows test
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 18 Jun 2016 11:58:54 +0000 (13:58 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 18 Jun 2016 11:58:54 +0000 (13:58 +0200)
Closes #2225

hugolib/embedded_shortcodes_test.go

index f9d411a194f0cdcb61c87bfcfea6179a47285c69..9092272d505e3a0e3141fc9875cbcb1e227ad0be 100644 (file)
@@ -18,6 +18,7 @@ import (
        "html/template"
        "net/url"
        "os"
+       "path/filepath"
        "regexp"
        "testing"
 
@@ -48,7 +49,7 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) {
                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)