diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-03-13 15:18:03 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-08-18 12:03:21 -0700 |
commit | 63a2d95003bc062d251d453d63ab1c5d91cbdb06 (patch) | |
tree | 5f50177a3cd8c66242030e198e2c1387ab4d56f6 /spec/unit/cookbook | |
parent | 74e6bd6b50af383829f4bfc47ca18a4e089b1428 (diff) | |
download | chef-63a2d95003bc062d251d453d63ab1c5d91cbdb06.tar.gz |
CHEF-5012: add methods for template breadcrumbs
adds:
- cookbook_name
- recipe_name
- recipe_line_string
- recipe_path
- recipe_line
- template_name
- template_path
accessible both as instance var (@-) and method (bare), like @node/node.
Diffstat (limited to 'spec/unit/cookbook')
-rw-r--r-- | spec/unit/cookbook/syntax_check_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/cookbook/syntax_check_spec.rb b/spec/unit/cookbook/syntax_check_spec.rb index ee4e0bed02..764829c387 100644 --- a/spec/unit/cookbook/syntax_check_spec.rb +++ b/spec/unit/cookbook/syntax_check_spec.rb @@ -53,6 +53,7 @@ describe Chef::Cookbook::SyntaxCheck do @ruby_files = @attr_files + @libr_files + @defn_files + @recipes + [File.join(cookbook_path, "metadata.rb")] basenames = %w{ helpers_via_partial_test.erb helper_test.erb + helpers.erb openldap_stuff.conf.erb openldap_variable_stuff.conf.erb test.erb |