hugolib: Prevent TestShortcodeTweet from accessing network
authorCameron Moore <moorereason@gmail.com>
Mon, 10 Oct 2016 13:10:14 +0000 (08:10 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 10 Oct 2016 13:10:14 +0000 (15:10 +0200)
commit0206be02753743afea81843e4b19cd5657cbad73
treedad898503d0e027f458fb338d384ebb74df14bf9
parent7b0f92db0b27b31a7c560cf127dfa97ffa92f1d0
hugolib: Prevent TestShortcodeTweet from accessing network

Overload `getJSON` and return mock response.  Also standardized error
reporting strings in tests.

Fixes #2359
hugolib/embedded_shortcodes_test.go