Skip to content

Commit

Permalink
Suppress stdout in liquid profiling test
Browse files Browse the repository at this point in the history
The test was spewing out some whitespace
  • Loading branch information
alfredxing committed Jan 27, 2016
1 parent e898b6e commit 33bd2a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,14 @@ def convert(*args)
@site = Site.new(site_configuration('profile' => true))
end

# Suppress output while testing
setup do
@stdout, $> = $>, StringIO.new
end
teardown do
$> = @stdout
end

should "print profile table" do
expect(@site.liquid_renderer).to receive(:stats_table)
@site.process
Expand Down

0 comments on commit 33bd2a3

Please sign in to comment.