diff options
author | Tim Smith <tsmith@chef.io> | 2018-01-20 11:36:38 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-01-20 11:54:55 -0800 |
commit | bd666217aaf590f75b6f9d01a9b77867d2de4119 (patch) | |
tree | 63f3920cafa3111220b33001b9049dca68e2fcc4 /spec/unit/resource/template_spec.rb | |
parent | 3b6800b84eeb7bd8f84a748ac6734104fdac04b4 (diff) | |
download | chef-bd666217aaf590f75b6f9d01a9b77867d2de4119.tar.gz |
Remove useless class tests and cleanup specsresource_spec_cleanup
We create the class then instantly check that it's exactly what we created. There's not much value in that. This also converts more things over to let.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/resource/template_spec.rb')
-rw-r--r-- | spec/unit/resource/template_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/unit/resource/template_spec.rb b/spec/unit/resource/template_spec.rb index 017c98517c..14e48900d3 100644 --- a/spec/unit/resource/template_spec.rb +++ b/spec/unit/resource/template_spec.rb @@ -22,10 +22,8 @@ describe Chef::Resource::Template do let(:resource) { Chef::Resource::Template.new("fakey_fakerton") } describe "initialize" do - it "creates a new Chef::Resource::Template" do - expect(resource).to be_a_kind_of(Chef::Resource) + it "is a subclass of Chef::Resource::File" do expect(resource).to be_a_kind_of(Chef::Resource::File) - expect(resource).to be_a_kind_of(Chef::Resource::Template) end end |