summaryrefslogtreecommitdiff
path: root/spec/unit/resource/service_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-01-20 11:36:38 -0800
committerTim Smith <tsmith@chef.io>2018-01-20 11:54:55 -0800
commitbd666217aaf590f75b6f9d01a9b77867d2de4119 (patch)
tree63f3920cafa3111220b33001b9049dca68e2fcc4 /spec/unit/resource/service_spec.rb
parent3b6800b84eeb7bd8f84a748ac6734104fdac04b4 (diff)
downloadchef-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/service_spec.rb')
-rw-r--r--spec/unit/resource/service_spec.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/spec/unit/resource/service_spec.rb b/spec/unit/resource/service_spec.rb
index 83d996f4fd..335ad76fc8 100644
--- a/spec/unit/resource/service_spec.rb
+++ b/spec/unit/resource/service_spec.rb
@@ -22,11 +22,6 @@ require "spec_helper"
describe Chef::Resource::Service do
let(:resource) { Chef::Resource::Service.new("chef") }
- it "creates a new Chef::Resource::Service" do
- expect(resource).to be_a_kind_of(Chef::Resource)
- expect(resource).to be_a_kind_of(Chef::Resource::Service)
- end
-
it "does not set a provider unless node[:init_package] is defined as systemd" do
expect(resource.provider).to eq(nil)
end