summaryrefslogtreecommitdiffstats
path: root/hugolib/pageGroup_test.go
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2014-12-07 19:48:00 +0100
committerspf13 <steve.francia@gmail.com>2014-12-09 09:43:15 -0500
commit9f77f93071d836a35b0078d1b349968abddb4a18 (patch)
tree909238a41b20b9e23324e4ffca01e8143655dd4a /hugolib/pageGroup_test.go
parent3a8c12418a97230df714488e522f44ce8af685c5 (diff)
Fix various Windows-issues
File handling was broken on Windows. This commit contains a revision of the path handling with separation of file paths and urls where needed. There may be remaining issues and there may be better ways to do this, but it is easier to start that refactoring job with a set of passing tests. Fixes #687 Fixes #660
Diffstat (limited to 'hugolib/pageGroup_test.go')
-rw-r--r--hugolib/pageGroup_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/pageGroup_test.go b/hugolib/pageGroup_test.go
index ff85fba8e..c8d89fb03 100644
--- a/hugolib/pageGroup_test.go
+++ b/hugolib/pageGroup_test.go
@@ -2,6 +2,7 @@ package hugolib
import (
"errors"
+ "path/filepath"
"reflect"
"testing"
@@ -26,7 +27,7 @@ var pageGroupTestSources = []pageGroupTestObject{
func preparePageGroupTestPages(t *testing.T) Pages {
var pages Pages
for _, s := range pageGroupTestSources {
- p, err := NewPage(s.path)
+ p, err := NewPage(filepath.FromSlash(s.path))
if err != nil {
t.Fatalf("failed to prepare test page %s", s.path)
}