diff options
author | Noah Campbell <[email protected]> | 2013-09-17 14:16:06 -0700 |
---|---|---|
committer | Noah Campbell <[email protected]> | 2013-09-17 14:16:06 -0700 |
commit | 6b0752e8c0334dfb2275a2edb975ec13a2724134 (patch) | |
tree | d489894fbf0585c4dfb8ccb8c70a7e78d11d633e /hugolib/site_url_test.go | |
parent | c6fe87b14e06a46bbf3b94cfdf67e9127d51e2fe (diff) | |
download | hugo-6b0752e8c0334dfb2275a2edb975ec13a2724134.tar.gz hugo-6b0752e8c0334dfb2275a2edb975ec13a2724134.zip |
Move AbUrlify to post content transformation
Currently the a@href and script@src elements will have BaseUrl applied
to their elements prior to being written to disk.
Diffstat (limited to 'hugolib/site_url_test.go')
-rw-r--r-- | hugolib/site_url_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hugolib/site_url_test.go b/hugolib/site_url_test.go index 6d969fde2..40a38eef6 100644 --- a/hugolib/site_url_test.go +++ b/hugolib/site_url_test.go @@ -96,8 +96,9 @@ func TestPageCount(t *testing.T) { t.Errorf("No indexed rendered. %v", target.files) } - if len(blueIndex) != 2 { - t.Errorf("Number of pages does not equal 2, got %d. %q", len(blueIndex), blueIndex) + expected := "<html><head></head><body>..</body></html>" + if string(blueIndex) != expected { + t.Errorf("Index template does not match expected: %q, got: %q", expected, string(blueIndex)) } for _, s := range []string{ |