From 8313afbb85f922c472baf7551907988c5793c2f5 Mon Sep 17 00:00:00 2001 From: N Date: Sat, 25 Jan 2020 20:17:41 +0000 Subject: [PATCH] test(rubo): fix some lint errors --- golang/defaults.yaml | 3 ++- .../default/controls/archives_spec.rb | 21 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/golang/defaults.yaml b/golang/defaults.yaml index b3f1fd2..72072b4 100644 --- a/golang/defaults.yaml +++ b/golang/defaults.yaml @@ -41,4 +41,5 @@ golang: cmd: goget: [] - clean: [] \ No newline at end of file + clean: [] + diff --git a/test/integration/default/controls/archives_spec.rb b/test/integration/default/controls/archives_spec.rb index c123710..def8adb 100644 --- a/test/integration/default/controls/archives_spec.rb +++ b/test/integration/default/controls/archives_spec.rb @@ -1,12 +1,11 @@ -title 'archives profile' - -control 'golang tarball archive' do +# frozen_string_literal: true +control 'golang tar archive' do impact 1.0 title 'should be installed' - desc "Ensure golang tarball archive was extracted correctly" - tag package: "tarball archive" + desc 'Ensure golang tarball archive was extracted correctly' + tag package: 'tarball archive' - describe file('/usr/local/go1.10.1.linux-amd64/go') do # another test + describe file('/usr/local/go1.10.1.linux-amd64/go') do it { should be_directory } it { should be_owned_by 'root' } it { should be_grouped_into 'root' } @@ -17,20 +16,22 @@ binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/go').content sha256sum = Digest::SHA256.hexdigest(binary) describe file('/usr/local/go1.10.1.linux-amd64/go/bin/go') do - its('sha256sum') { should eq '11438a2d41e257519e8c0ad098c287f9f73f1b8382a012a0c10e1dee5fb1e8ae' } + its('sha256sum') + { should eq '11438a2d41e257519e8c0ad098c287f9f73f1b8382a012a0c10e1dee5fb1e8ae' } end binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/godoc').content sha256sum = Digest::SHA256.hexdigest(binary) describe file('/usr/local/go1.10.1.linux-amd64/go/bin/godoc') do - its('sha256sum') { should eq '4076bb73349f253c04e5ef214934938760eefb26529f22d2e6fdbd61b99bb4b5' } + its('sha256sum') + { should eq '4076bb73349f253c04e5ef214934938760eefb26529f22d2e6fdbd61b99bb4b5' } end - binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/gofmt').content sha256sum = Digest::SHA256.hexdigest(binary) describe file('/usr/local/go1.10.1.linux-amd64/go/bin/gofmt') do - its('sha256sum') { should eq '5673f5914f195331322b20aee026f1882dac7c92b61c41bae23a04fb803b3e2c' } + its('sha256sum') + { should eq '5673f5914f195331322b20aee026f1882dac7c92b61c41bae23a04fb803b3e2c'} end end