summaryrefslogtreecommitdiffstats
path: root/hugolib/embedded_shortcodes_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-06-18 13:58:54 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-06-18 13:58:54 +0200
commit714d4a9a974a3575b243765a832ae3ff959c1751 (patch)
treea3e060c8ae0b546213eec77d3418fe9de875f2ba /hugolib/embedded_shortcodes_test.go
parent44edd9382a3b9f84145ad8a8137a810c3dd5111c (diff)
Fix failing Windows test
Closes #2225
Diffstat (limited to 'hugolib/embedded_shortcodes_test.go')
-rw-r--r--hugolib/embedded_shortcodes_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go
index f9d411a19..9092272d5 100644
--- a/hugolib/embedded_shortcodes_test.go
+++ b/hugolib/embedded_shortcodes_test.go
@@ -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)