summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Malm <gmalm+github-chef-chef-2018@engineyard.com>2018-03-21 23:47:48 +0000
committerGordon Malm <gmalm+github-chef-chef-2018@engineyard.com>2018-03-21 23:47:48 +0000
commit8574e5de3642313cc0da098c5cd328fe4a3e22bd (patch)
treef6820345b5710b1112d2a780680525e80c68b7fb
parent802c10c9f897c12c182789e9bfddacf2a3e538cd (diff)
downloadchef-8574e5de3642313cc0da098c5cd328fe4a3e22bd.tar.gz
Fix style issues reported by travis-ci.
Signed-off-by: Gordon Malm <gmalm+github-chef-chef-2018@engineyard.com>
-rw-r--r--lib/chef/provider/package/portage.rb2
-rw-r--r--spec/unit/provider/package/portage_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/package/portage.rb b/lib/chef/provider/package/portage.rb
index 936707911e..d383ea79dd 100644
--- a/lib/chef/provider/package/portage.rb
+++ b/lib/chef/provider/package/portage.rb
@@ -92,7 +92,7 @@ class Chef
@candidate_version = pkginfo.stdout.split(/(?<=-)/).last(2).join
else
# Latest/Best version of the package is NOT a revision (-rX).
- @candidate_version = pkginfo.stdout.split('-').last
+ @candidate_version = pkginfo.stdout.split("-").last
end
@candidate_version
diff --git a/spec/unit/provider/package/portage_spec.rb b/spec/unit/provider/package/portage_spec.rb
index 0d214c2257..40dc44b113 100644
--- a/spec/unit/provider/package/portage_spec.rb
+++ b/spec/unit/provider/package/portage_spec.rb
@@ -113,7 +113,7 @@ describe Chef::Provider::Package::Portage, "load_current_resource" do
end
it "should throw an exception if the exitstatus is not 0" do
- status = double(:stdout => "", :stderr =>"", :exitstatus => 1)
+ status = double(:stdout => "", :stderr => "", :exitstatus => 1)
allow(@provider).to receive(:shell_out).and_return(status)
expect { @provider.candidate_version }.to raise_error(Chef::Exceptions::Package)
end