From e3b162ccc6aa93fdd00b18795cd138a5b326ec1f Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Sat, 25 Jun 2016 18:02:07 -0500 Subject: [PATCH] transform: Don't use helpers.StringToReader --- transform/hugogeneratorinject_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.30.2