spec/bin/chili_spec.rb in chili-0.2.0 vs spec/bin/chili_spec.rb in chili-0.2.1
- old
+ new
@@ -11,10 +11,10 @@
FileUtils.rm_rf File.join(app_path, 'Gemfile')
FileUtils.touch File.join(app_path, 'Gemfile')
end
it 'creates a new extension with a correct file structure' do
- `cd #{app_path} && #{chili} template`
+ `cd #{app_path} && #{chili} new template`
Dir.glob(File.join(template_path, "**/*")).reject { |f| File.directory?(f) }.each do |source|
result = File.join(app_path, 'vendor/chili_template', source.sub(template_path, ''))
File.open(result, 'rb').read.should == File.open(source, 'rb').read
end