ref: e3b162ccc6aa93fdd00b18795cd138a5b326ec1f
parent: e2aea65170985d7428c468ce0591557ad95af884
author: Cameron Moore <[email protected]>
date: Sat Jun 25 14:02:07 EDT 2016
transform: Don't use helpers.StringToReader
--- a/transform/hugogeneratorinject_test.go
+++ b/transform/hugogeneratorinject_test.go
@@ -15,9 +15,8 @@
import (
"bytes"
+ "strings"
"testing"
-
- "github.com/spf13/hugo/helpers"
)
func TestHugoGeneratorInject(t *testing.T) {
@@ -46,7 +45,7 @@
{"</head>", "</head>"},
{"<head>", "<head>\n\tMETA"},
} {
- in := helpers.StringToReader(this.in)
+ in := strings.NewReader(this.in)
out := new(bytes.Buffer)
tr := NewChain(HugoGeneratorInject)