hugo/hugolib/path_seperators_test.go
2013-08-09 17:36:31 -07:00

20 lines
421 B
Go

package hugolib
import (
"testing"
"path/filepath"
)
func TestDegenerateMissingFolderInPageFilename(t *testing.T) {
p := NewPage(filepath.Join("foobar"))
if p != nil {
t.Fatalf("Creating a new Page without a subdirectory should result in nil page")
}
}
func TestSettingOutFileOnPageContainsCorrectSlashes(t *testing.T) {
s := NewSite(&Config{})
p := NewPage(filepath.Join("sub", "foobar"))
s.setOutFile(p)
}