summaryrefslogtreecommitdiff
path: root/spec/unit/resource_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource_spec.rb')
-rw-r--r--spec/unit/resource_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb
index f7109cc680..b8c1a031e2 100644
--- a/spec/unit/resource_spec.rb
+++ b/spec/unit/resource_spec.rb
@@ -348,6 +348,11 @@ describe Chef::Resource do
it "should recognize dynamically defined resources" do
expect(resource.defined_at).to eq("dynamically defined")
end
+
+ it "should return nil for the cookbook_version when the cookbook_name is @recipe_files" do
+ resource.cookbook_name = "@recipe_files"
+ expect(resource.cookbook_version).to be nil
+ end
end
describe "to_s" do