From 404a9bc88be538769c6c80b3b31f39a6582991d2 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 13 Feb 2017 09:52:10 -0800 Subject: fix specs: RedundantReturn, RedundantSelf, RedundantBegin department of redundancy department Signed-off-by: Lamont Granquist --- spec/unit/provider/deploy_spec.rb | 2 +- spec/unit/provider/package/ips_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/unit/provider') diff --git a/spec/unit/provider/deploy_spec.rb b/spec/unit/provider/deploy_spec.rb index b30ddb736a..b0ede7e260 100644 --- a/spec/unit/provider/deploy_spec.rb +++ b/spec/unit/provider/deploy_spec.rb @@ -595,7 +595,7 @@ describe Chef::Provider::Deploy do callback_code = Proc.new do snitch = 42 - temp_collection = self.resource_collection + temp_collection = resource_collection run("tehMice") snitch = temp_collection.lookup("execute[tehMice]") end diff --git a/spec/unit/provider/package/ips_spec.rb b/spec/unit/provider/package/ips_spec.rb index 156adf402a..3bbdd26ce3 100644 --- a/spec/unit/provider/package/ips_spec.rb +++ b/spec/unit/provider/package/ips_spec.rb @@ -41,7 +41,7 @@ installed on the system. Try specifying -r to query remotely: crypto/gnupg PKG_STATUS - return OpenStruct.new(:stdout => stdout, :stdin => stdin, :stderr => stderr, :status => @status, :exitstatus => 1) + OpenStruct.new(:stdout => stdout, :stdin => stdin, :stderr => stderr, :status => @status, :exitstatus => 1) end def remote_output @@ -59,7 +59,7 @@ Packaging Date: April 1, 2012 05:55:52 PM PKG_STATUS stdin = StringIO.new stderr = "" - return OpenStruct.new(:stdout => stdout, :stdin => stdin, :stderr => stderr, :status => @status, :exitstatus => 0) + OpenStruct.new(:stdout => stdout, :stdin => stdin, :stderr => stderr, :status => @status, :exitstatus => 0) end context "when loading current resource" do -- cgit v1.2.1