diff options
author | spf13 <steve.francia@gmail.com> | 2014-04-07 11:44:13 -0400 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-04-07 11:44:51 -0400 |
commit | 9a83f7a01b1fe79e603c3eb78d380614e5e00ba7 (patch) | |
tree | 265baf7cde36b41a5f6f93660f8d0f3f89ae8886 /hugolib/rss_test.go | |
parent | 62dd1d45c12193ac5ad95a4f491dfcdbcad7be7a (diff) |
Fixing all tests to pass with new Viper Config
Diffstat (limited to 'hugolib/rss_test.go')
-rw-r--r-- | hugolib/rss_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hugolib/rss_test.go b/hugolib/rss_test.go index 5f21db887..8bcb155bd 100644 --- a/hugolib/rss_test.go +++ b/hugolib/rss_test.go @@ -2,9 +2,11 @@ package hugolib import ( "bytes" + "testing" + "github.com/spf13/hugo/source" "github.com/spf13/hugo/target" - "testing" + "github.com/spf13/viper" ) const RSS_TEMPLATE = `<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> @@ -31,9 +33,9 @@ const RSS_TEMPLATE = `<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom func TestRSSOutput(t *testing.T) { files := make(map[string][]byte) target := &target.InMemoryTarget{Files: files} + viper.Set("baseurl", "http://auth/bub/") s := &Site{ Target: target, - Config: Config{BaseUrl: "http://auth/bub/"}, Source: &source.InMemorySource{ByteSource: WEIGHTED_SOURCES}, } s.initializeSiteInfo() |