Merge pull request #4409 from alfredxing/fix-test-stdout

Merge pull request 4409
This commit is contained in:
jekyllbot 2016-01-28 14:21:40 -08:00
commit 0b32252506
1 changed files with 8 additions and 0 deletions

View File

@ -465,6 +465,14 @@ class TestSite < JekyllUnitTest
@site = Site.new(site_configuration('profile' => true))
end
# Suppress output while testing
setup do
$stdout = StringIO.new
end
teardown do
$stdout = STDOUT
end
should "print profile table" do
expect(@site.liquid_renderer).to receive(:stats_table)
@site.process