use new header form in create template

This commit is contained in:
Roland Walker
2014-11-13 11:45:06 -05:00
parent 7c9cec2f4e
commit 00747614f7
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -18,9 +18,8 @@ class Cask::CLI::Create < Cask::CLI::Base
end
def self.template(cask_name);
cask_class = cask_name.split('-').map(&:capitalize).join
<<-EOS.undent
class #{cask_class} < Cask
cask :v1 => '#{cask_name}' do
version ''
sha256 ''
+1 -1
View File
@@ -36,7 +36,7 @@ describe Cask::CLI::Create do
Cask::CLI::Create.run('new-cask')
template = File.read(Cask.path('new-cask'))
template.must_equal <<-TEMPLATE.undent
class NewCask < Cask
cask :v1 => 'new-cask' do
version ''
sha256 ''