From 652c350785c05d7c27f66dccda668b24471238a4 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 11 Oct 2019 21:31:38 +0100 Subject: [PATCH] fix(rubocop): add fixes using `rubocop --safe-auto-correct` --- test/integration/default/controls/config.rb | 4 ++-- test/integration/default/controls/package.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/default/controls/config.rb b/test/integration/default/controls/config.rb index 54770b1..2af5bee 100644 --- a/test/integration/default/controls/config.rb +++ b/test/integration/default/controls/config.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + control 'Sudoers configuration' do title 'should match desired lines' @@ -17,7 +19,6 @@ control 'Sudoers configuration' do its('content') { should include '%sudo ALL=(nodejs) NOPASSWD: ALL' } its('content') { should include '+sysadmins ALL=(ALL) ALL' } its('content') { should include '#includedir /etc/sudoers.d' } - end describe file('/etc/sudoers.d/extra-file') do @@ -43,5 +44,4 @@ control 'Sudoers configuration' do its('mode') { should cmp '0440' } its('content') { should include '+other_netgroup ALL=(ALL) ALL' } end - end diff --git a/test/integration/default/controls/package.rb b/test/integration/default/controls/package.rb index 016eec0..e83d035 100644 --- a/test/integration/default/controls/package.rb +++ b/test/integration/default/controls/package.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true control 'Sudo package' do title 'should be installed'