summaryrefslogtreecommitdiff
path: root/spec/unit/resource/git_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/git_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/git_spec.rb')
-rw-r--r--spec/unit/resource/git_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/resource/git_spec.rb b/spec/unit/resource/git_spec.rb
index be2592432b..1883595617 100644
--- a/spec/unit/resource/git_spec.rb
+++ b/spec/unit/resource/git_spec.rb
@@ -30,9 +30,8 @@ describe Chef::Resource::Git do
let(:resource) { Chef::Resource::Git.new("my awesome webapp") }
- it "is a kind of Scm Resource" do
+ it "is a subclass of Chef::Resource::Scm" do
expect(resource).to be_a_kind_of(Chef::Resource::Scm)
- expect(resource).to be_an_instance_of(Chef::Resource::Git)
end
it "uses aliases revision as branch" do