diff options
Diffstat (limited to 'spec/unit/resource/build_essential_spec.rb')
-rw-r--r-- | spec/unit/resource/build_essential_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/resource/build_essential_spec.rb b/spec/unit/resource/build_essential_spec.rb index dff94e6bdc..5c25d3e961 100644 --- a/spec/unit/resource/build_essential_spec.rb +++ b/spec/unit/resource/build_essential_spec.rb @@ -28,4 +28,12 @@ describe Chef::Resource::BuildEssential do it "has a default action of install" do expect(resource.action).to eql([:install]) end + + context "when not settting a resource name" do + let(:resource) { Chef::Resource::BuildEssential.new(nil) } + + it "the name defaults to an empty string" do + expect(resource.name).to eql("") + end + end end |