Sha256: 567416d74b3506da124e0fd3d60b1afe37d6ea01c4355d99a50960e0c5893292
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require_relative '../spec_helper' describe 'templates' do it 'should have a list of available templates' do Templates.all_templates.should_not be_empty end context 'each available template' do it 'should be specified by the name of the template, not the path' do Templates.all_templates.each do |template_name| File.basename(template_name).should == template_name end end it 'should have a valid template name' do Templates.all_templates.each do |template_name| template = Templates.new(template_name) template.template_name.should == template_name end end it 'should have a path ending to the template name' do Templates.all_templates.each do |template_name| template = Templates.new(template_name) File.basename(template.path).should == template_name end end it 'should have a valid manifest' do Templates.all_templates.each do |template_name| template = Templates.new(template_name) File.exists?(template.manifest).should be_true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xcbootstrap-0.1.0 | spec/unit/templates_spec.rb |