From d9e5fdde5b972d52da5c53bb53353a53c685e1eb Mon Sep 17 00:00:00 2001 From: Ruslan Korolev Date: Fri, 12 Sep 2014 18:30:06 +0400 Subject: [PATCH] test for jekyll new --blank --- test/test_new_command.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_new_command.rb b/test/test_new_command.rb index bc58bd2e..805279ec 100644 --- a/test/test_new_command.rb +++ b/test/test_new_command.rb @@ -70,6 +70,12 @@ class TestNewCommand < Test::Unit::TestCase assert_same_elements erb_template_files, new_site_files end + + should 'create blank project' do + 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 end context 'when multiple args are given' do