Suppress stdout in liquid profiling test

The test was spewing out some whitespace
This commit is contained in:
Alfred Xing 2016-01-27 13:41:40 -08:00
parent e898b6e8bd
commit 5fc48ffcb9
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