</rss>`
func TestRSSOutput(t *testing.T) {
+ rssUri := "customrss.xml"
viper.Set("baseurl", "http://auth/bub/")
- viper.Set("RSSUri", "index.xml")
+ viper.Set("RSSUri", rssUri)
+ defer viper.Set("RSSUri", "index.xml")
hugofs.DestinationFS = new(afero.MemMapFs)
s := &Site{
t.Fatalf("Unable to RenderHomePage: %s", err)
}
- file, err := hugofs.DestinationFS.Open("index.xml")
+ file, err := hugofs.DestinationFS.Open(rssUri)
if err != nil {
- t.Fatalf("Unable to locate: %s", "index.xml")
+ t.Fatalf("Unable to locate: %s", rssUri)
}
rss := helpers.ReaderToBytes(file)