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