From: Cameron Moore Date: Sat, 25 Jun 2016 23:02:07 +0000 (-0500) Subject: transform: Don't use helpers.StringToReader X-Git-Tag: v0.17~272 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e3b162cc;p=brevno-suite%2Fhugo transform: Don't use helpers.StringToReader --- diff --git a/transform/hugogeneratorinject_test.go b/transform/hugogeneratorinject_test.go index 3f8b26de..d37fea24 100644 --- a/transform/hugogeneratorinject_test.go +++ b/transform/hugogeneratorinject_test.go @@ -15,9 +15,8 @@ package transform import ( "bytes" + "strings" "testing" - - "github.com/spf13/hugo/helpers" ) func TestHugoGeneratorInject(t *testing.T) { @@ -46,7 +45,7 @@ func TestHugoGeneratorInject(t *testing.T) { {"", ""}, {"", "\n\tMETA"}, } { - in := helpers.StringToReader(this.in) + in := strings.NewReader(this.in) out := new(bytes.Buffer) tr := NewChain(HugoGeneratorInject)