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/ohai_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/ohai_spec.rb')
-rw-r--r-- | spec/unit/resource/ohai_spec.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/spec/unit/resource/ohai_spec.rb b/spec/unit/resource/ohai_spec.rb index fdd38ecf39..eb569aa3b7 100644 --- a/spec/unit/resource/ohai_spec.rb +++ b/spec/unit/resource/ohai_spec.rb @@ -22,11 +22,6 @@ describe Chef::Resource::Ohai do let(:resource) { Chef::Resource::Ohai.new("ohai_reload") } - it "creates a new Chef::Resource::Ohai" do - expect(resource).to be_a_kind_of(Chef::Resource) - expect(resource).to be_a_kind_of(Chef::Resource::Ohai) - end - it "has a resource name of :ohai" do expect(resource.resource_name).to eql(:ohai) end |