From 121a06a9ebd623c70111c5baadd7ee5376a18f69 Mon Sep 17 00:00:00 2001 From: Ruslan Korolev Date: Tue, 16 Sep 2014 16:42:33 +0400 Subject: [PATCH] unit test for jekyll new --force --- test/test_new_command.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_new_command.rb b/test/test_new_command.rb index 805279ec..fdf8f7cd 100644 --- a/test/test_new_command.rb +++ b/test/test_new_command.rb @@ -75,6 +75,11 @@ class TestNewCommand < Test::Unit::TestCase blank_contents = %w(/_drafts /_layouts /_posts /index.html) capture_stdout { Jekyll::Commands::New.process(@args, '--blank') } assert_same_elements blank_contents, dir_contents(@full_path) + end + + should 'force created folder' do + capture_stdout { Jekyll::Commands::New.process(@args) } + assert_nothing_raised(SystemExit) { Jekyll::Commands::New.process(@args, '--force') } end end