From a0c49f31d6dd896ab5eb7e3ea30a3c06692c745e 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 | 2 +- .../default/controls/archives_spec.rb | 20 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/golang/defaults.yaml b/golang/defaults.yaml index b3f1fd2..16b5c4b 100644 --- a/golang/defaults.yaml +++ b/golang/defaults.yaml @@ -41,4 +41,4 @@ 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..033a0af 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,25 @@ 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 +# rubocop:disable LineLength its('sha256sum') { should eq '11438a2d41e257519e8c0ad098c287f9f73f1b8382a012a0c10e1dee5fb1e8ae' } +# rubocop:enable LineLength 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 +# rubocop:disable LineLength its('sha256sum') { should eq '4076bb73349f253c04e5ef214934938760eefb26529f22d2e6fdbd61b99bb4b5' } +# rubocop:enable LineLength 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' } +# rubocop:disable LineLength + its('sha256sum') { should eq '5673f5914f195331322b20aee026f1882dac7c92b61c41bae23a04fb803b3e2c'} +# rubocop:enable LineLength end end