Capture the output of Jekyll::Commands::New when looking for an error.
This commit is contained in:
parent
665178d210
commit
03d9396b85
|
@ -79,7 +79,9 @@ class TestNewCommand < Test::Unit::TestCase
|
||||||
|
|
||||||
should 'force created folder' do
|
should 'force created folder' do
|
||||||
capture_stdout { Jekyll::Commands::New.process(@args) }
|
capture_stdout { Jekyll::Commands::New.process(@args) }
|
||||||
assert_nothing_raised(SystemExit) { Jekyll::Commands::New.process(@args, '--force') }
|
assert_nothing_raised(SystemExit) do
|
||||||
|
capture_stdout {Jekyll::Commands::New.process(@args, '--force') }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue