spec/support/generators.rb in stove-3.2.7 vs spec/support/generators.rb in stove-3.2.8
- old
+ new
@@ -18,9 +18,14 @@
FileUtils.mkdir_p(root.join('providers'))
FileUtils.mkdir_p(root.join('templates'))
FileUtils.mkdir_p(root.join('templates', 'default'))
# Files
+ File.open(root.join('.foodcritic'), 'wb') do |f|
+ f.write <<-EOH.gsub(/^ {11}/, '')
+ ~FC031 ~FC045
+ EOH
+ end
File.open(root.join('metadata.rb'), 'wb') do |f|
f.write <<-EOH.gsub(/^ {11}/, '')
name '#{cookbook_name}'
version '1.0.0'
EOH