From 03d9396b85d75e3c533f93ce39c1d243f0992456 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 23 Nov 2014 12:53:36 -0800 Subject: [PATCH] Capture the output of Jekyll::Commands::New when looking for an error. --- test/test_new_command.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_new_command.rb b/test/test_new_command.rb index fdf8f7cd..544a10c4 100644 --- a/test/test_new_command.rb +++ b/test/test_new_command.rb @@ -79,8 +79,10 @@ class TestNewCommand < Test::Unit::TestCase should 'force created folder' do capture_stdout { Jekyll::Commands::New.process(@args) } - assert_nothing_raised(SystemExit) { Jekyll::Commands::New.process(@args, '--force') } - end + assert_nothing_raised(SystemExit) do + capture_stdout {Jekyll::Commands::New.process(@args, '--force') } + end + end end context 'when multiple args are given' do