summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook/syntax_check_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@chef.io>2016-02-24 17:38:33 -0800
committerdanielsdeleo <dan@chef.io>2016-02-26 17:42:30 -0800
commit63ce2e2e8abfc3a952ad16b53cac5e2e69176967 (patch)
treee616083ba557d34139181ad67b7effac4b05d986 /spec/unit/cookbook/syntax_check_spec.rb
parent6ee7814eeaf0d82b61b24eae0d43942304e6c7ea (diff)
downloadchef-63ce2e2e8abfc3a952ad16b53cac5e2e69176967.tar.gz
Add test file to fixture cookbook
Diffstat (limited to 'spec/unit/cookbook/syntax_check_spec.rb')
-rw-r--r--spec/unit/cookbook/syntax_check_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/unit/cookbook/syntax_check_spec.rb b/spec/unit/cookbook/syntax_check_spec.rb
index 6d0ce96870..228f695106 100644
--- a/spec/unit/cookbook/syntax_check_spec.rb
+++ b/spec/unit/cookbook/syntax_check_spec.rb
@@ -38,7 +38,8 @@ describe Chef::Cookbook::SyntaxCheck do
recipes/default.rb
recipes/gigantor.rb
recipes/one.rb
- recipes/return.rb }.map { |f| File.join(cookbook_path, f) }
+ recipes/return.rb
+ spec/spec_helper.rb }.map { |f| File.join(cookbook_path, f) }
end
before do
@@ -50,7 +51,8 @@ describe Chef::Cookbook::SyntaxCheck do
@libr_files = %w{openldap.rb openldap/version.rb}.map { |f| File.join(cookbook_path, "libraries", f) }
@defn_files = %w{client.rb server.rb}.map { |f| File.join(cookbook_path, "definitions", f) }
@recipes = %w{default.rb gigantor.rb one.rb return.rb}.map { |f| File.join(cookbook_path, "recipes", f) }
- @ruby_files = @attr_files + @libr_files + @defn_files + @recipes + [File.join(cookbook_path, "metadata.rb")]
+ @spec_files = [ File.join(cookbook_path, "spec", "spec_helper.rb") ]
+ @ruby_files = @attr_files + @libr_files + @defn_files + @recipes + @spec_files + [File.join(cookbook_path, "metadata.rb")]
basenames = %w{ helpers_via_partial_test.erb
helper_test.erb
helpers.erb