summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authordanielsdeleo <dan@chef.io>2016-02-24 17:53:19 -0800
committerdanielsdeleo <dan@chef.io>2016-02-26 17:42:30 -0800
commit8701b3d18cd1e9df64bb4552467e06383878d7ea (patch)
tree28c38a0fee878baf3da2c9ca9b1a52ea1cd8cfdd /spec
parent63ce2e2e8abfc3a952ad16b53cac5e2e69176967 (diff)
downloadchef-8701b3d18cd1e9df64bb4552467e06383878d7ea.tar.gz
List all the unignored files when loading a cookbook
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/cookbook/cookbook_version_loader_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/cookbook/cookbook_version_loader_spec.rb b/spec/unit/cookbook/cookbook_version_loader_spec.rb
index a32eb052af..161b3d0f3d 100644
--- a/spec/unit/cookbook/cookbook_version_loader_spec.rb
+++ b/spec/unit/cookbook/cookbook_version_loader_spec.rb
@@ -73,6 +73,10 @@ describe Chef::Cookbook::CookbookVersionLoader do
expect(loaded_cookbook.file_filenames).to include(full_path("/files/default/remotedir/.a_dotdir/.a_dotfile_in_a_dotdir"))
end
+ it "loads all unignored files, even if they don't match a segment type" do
+ expect(loaded_cookbook.all_unignored_files).to include(full_path("/spec/spec_helper.rb"))
+ end
+
it "should load the metadata for the cookbook" do
expect(loaded_cookbook.metadata.name.to_s).to eq("openldap")
expect(loaded_cookbook.metadata).to be_a_kind_of(Chef::Cookbook::Metadata)