From 3bbfd99176cc08afbf5926ed06007b196b1332ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 24 Mar 2016 14:20:00 +0100 Subject: [PATCH] hugolib: Apply Golint rules to rss_test.go --- hugolib/rss_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hugolib/rss_test.go b/hugolib/rss_test.go index a6a4f82e5..b8a16665f 100644 --- a/hugolib/rss_test.go +++ b/hugolib/rss_test.go @@ -24,7 +24,7 @@ import ( "github.com/spf13/viper" ) -const RSS_TEMPLATE = ` +const rssTemplate = ` {{ .Title }} on {{ .Site.Title }} {{ .Permalink }} @@ -49,16 +49,16 @@ func TestRSSOutput(t *testing.T) { viper.Reset() defer viper.Reset() - rssUri := "customrss.xml" + rssURI := "customrss.xml" viper.Set("baseurl", "http://auth/bub/") - viper.Set("RSSUri", rssUri) + viper.Set("RSSUri", rssURI) hugofs.DestinationFS = new(afero.MemMapFs) s := &Site{ Source: &source.InMemorySource{ByteSource: WEIGHTED_SOURCES}, } s.initializeSiteInfo() - s.prepTemplates("rss.xml", RSS_TEMPLATE) + s.prepTemplates("rss.xml", rssTemplate) if err := s.CreatePages(); err != nil { t.Fatalf("Unable to create pages: %s", err) @@ -72,10 +72,10 @@ func TestRSSOutput(t *testing.T) { t.Fatalf("Unable to RenderHomePage: %s", err) } - file, err := hugofs.DestinationFS.Open(rssUri) + file, err := hugofs.DestinationFS.Open(rssURI) if err != nil { - t.Fatalf("Unable to locate: %s", rssUri) + t.Fatalf("Unable to locate: %s", rssURI) } rss := helpers.ReaderToBytes(file)