diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/cookbook/manifest_v0_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/cookbook_manifest_spec.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/cookbook/manifest_v0_spec.rb b/spec/unit/cookbook/manifest_v0_spec.rb index 0f5cfbe7a4..026b0a10bd 100644 --- a/spec/unit/cookbook/manifest_v0_spec.rb +++ b/spec/unit/cookbook/manifest_v0_spec.rb @@ -82,7 +82,7 @@ describe Chef::Cookbook::ManifestV0 do it "creates an all_files key and populates it" do result = described_class.from_hash(source_hash) - expect(result[:all_files].map { |f| f["name"] }).to match_array %w{ recipes/default.rb attributes/default.rb README.rdoc } + expect(result[:all_files].map { |f| f["name"] }).to match_array %w{ recipes/default.rb attributes/default.rb root_files/README.rdoc } end it "deletes unwanted segment types" do diff --git a/spec/unit/cookbook_manifest_spec.rb b/spec/unit/cookbook_manifest_spec.rb index ab4b5cbfb7..417a067451 100644 --- a/spec/unit/cookbook_manifest_spec.rb +++ b/spec/unit/cookbook_manifest_spec.rb @@ -122,6 +122,8 @@ describe Chef::CookbookManifest do parts = relative_path.split("/") name = if %w{templates files}.include?(parts[0]) && parts.length == 3 File.join(parts[0], parts[2]) + elsif parts.length == 1 + "root_files/#{parts[0]}" else relative_path end |