From 5fc48ffcb96f7880b036ea02e8794d975bd74082 Mon Sep 17 00:00:00 2001 From: Alfred Xing Date: Wed, 27 Jan 2016 13:41:40 -0800 Subject: [PATCH] Suppress stdout in liquid profiling test The test was spewing out some whitespace --- test/test_site.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_site.rb b/test/test_site.rb index e0883b49..c06c218e 100644 --- a/test/test_site.rb +++ b/test/test_site.rb @@ -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