summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook_version_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@chef.io>2016-02-24 17:25:20 -0800
committerdanielsdeleo <dan@chef.io>2016-02-26 17:42:30 -0800
commit6ee7814eeaf0d82b61b24eae0d43942304e6c7ea (patch)
tree22d6544ee9c1fcdd3ab847d30f0f51f0e4de982d /spec/unit/cookbook_version_spec.rb
parent2aa4bd8a2f87c2e2ac3ed7a18fa59499519b0623 (diff)
downloadchef-6ee7814eeaf0d82b61b24eae0d43942304e6c7ea.tar.gz
Add all_unignored_files attribute to CBVersion
Diffstat (limited to 'spec/unit/cookbook_version_spec.rb')
-rw-r--r--spec/unit/cookbook_version_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/cookbook_version_spec.rb b/spec/unit/cookbook_version_spec.rb
index 7bf21b1c74..a74786c1d1 100644
--- a/spec/unit/cookbook_version_spec.rb
+++ b/spec/unit/cookbook_version_spec.rb
@@ -57,6 +57,10 @@ describe Chef::CookbookVersion do
expect(cookbook_version.metadata_filenames).to be_empty
end
+ it "has an empty set of all_unignored_files" do
+ expect(cookbook_version.all_unignored_files).to be_empty
+ end
+
it "is not frozen" do
expect(cookbook_version).not_to be_frozen_version
end
@@ -78,6 +82,7 @@ describe Chef::CookbookVersion do
let(:cookbook_paths_by_type) do
{
# Dunno if the paths here are representitive of what is set by CookbookLoader...
+ all_unignored_files: Dir[File.join(cookbook_root, "**", "*.rb")],
attribute_filenames: Dir[File.join(cookbook_root, "attributes", "**", "*.rb")],
definition_filenames: Dir[File.join(cookbook_root, "definitions", "**", "*.rb")],
file_filenames: Dir[File.join(cookbook_root, "files", "**", "*.tgz")],
@@ -164,6 +169,7 @@ describe Chef::CookbookVersion do
let(:cookbook_paths_by_type) do
{
# Dunno if the paths here are representitive of what is set by CookbookLoader...
+ all_unignored_files: Dir[File.join(cookbook_root, "**", "*.rb")],
attribute_filenames: Dir[File.join(cookbook_root, "attributes", "**", "*.rb")],
definition_filenames: Dir[File.join(cookbook_root, "definitions", "**", "*.rb")],
file_filenames: Dir[File.join(cookbook_root, "files", "**", "*.*")],