shared/flavor/flay/recipes/recipe.rb in chef-flavor-flay-0.2.1 vs shared/flavor/flay/recipes/recipe.rb in chef-flavor-flay-0.3.0

- old
+ new

@@ -4,9 +4,12 @@ spec_helper_path = File.join(cookbook_dir, "test", "unit", "spec_helper.rb") spec_path = File.join(cookbook_dir, "test", "unit", "recipes", "#{context.new_file_basename}_spec.rb") directory("#{cookbook_dir}/test/unit/recipes") { recursive true } -cookbook_file(spec_helper_path) { action :create_if_missing } +cookbook_file spec_helper_path do + source "spec_helper.rb" + action :create_if_missing +end flay_template(recipe_path) { source "recipe.rb.erb" } flay_template(spec_path) { source "recipe_spec.rb.erb" }