# File lib/meez/meez.rb, line 106 def self.init_chefspec(cookbook_name, options) puts '* Initializing Chef Spec' path = File.join(options[:path], cookbook_name) spec_path = File.join(path, 'test', 'unit', 'spec') FileUtils.mkdir_p(spec_path) write_template('chefspec/spec_helper.rb.erb', spec_path, cookbook_name, options) write_template('chefspec/default_spec.rb.erb', spec_path, cookbook_name, options) gitignore(path, '.coverage/*') add_gem(path, 'chefspec') end