Sha256: 2fa65cb41866fb97700c3cd6c753809188d21c902b9895a7914c0484b9759324
Contents?: true
Size: 961 Bytes
Versions: 22
Compression:
Stored size: 961 Bytes
Contents
#! /usr/bin/env ruby require 'gennaro' describe Gennaro do it 'has built-in templates' do template_path = File.expand_path '../../templates', __FILE__ Gennaro.get_templates(template_path).should_not be_empty end it 'recognizes built-in templates' do template_path = File.expand_path '../../templates', __FILE__ Gennaro.template_exists?(template_path, 'authentication' ).should be_true Gennaro.template_exists?(template_path, 'sono ammeregano').should be_false end it 'generates templates correctly' do template_path = File.expand_path '../../templates/authentication', __FILE__ gennaro = Gennaro.new template_path, 'Example', Dir.pwd, false gennaro.generate! gennaro.replace_tags! Dir.exists?(File.join(Dir.pwd, 'example')).should be_true File.exists?(File.join(Dir.pwd, 'example', 'example.rb')).should be_true gennaro.delete_dir File.join(Dir.pwd, 'example') end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
gennaro-0.2.1 | spec/gennaro_spec.rb |
gennaro-0.2 | spec/gennaro_spec.rb |