test for jekyll new --blank

This commit is contained in:
Ruslan Korolev 2014-09-12 18:30:06 +04:00
父節點 671b435b3b
當前提交 d9e5fdde5b
共有 1 個檔案被更改,包括 6 行新增0 行删除

查看文件

@ -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