From 2cfb5a74f32fa0f429b62a0c2053278859463418 Mon Sep 17 00:00:00 2001 From: Daniel Dehennin Date: Fri, 17 Jul 2020 16:31:46 +0200 Subject: [PATCH] fix(inspec): make rubocop happy * test/integration/default/controls/services_spec.rb: favor modifier if usage when having a single-line body. * test/integration/default/controls/config_spec.rb: add frozen string literal comment. * test/integration/default/controls/packages_spec.rb: ditoo. * test/integration/default/controls/services_spec.rb: ditoo. --- test/integration/default/controls/config_spec.rb | 2 ++ test/integration/default/controls/packages_spec.rb | 2 ++ test/integration/default/controls/services_spec.rb | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/integration/default/controls/config_spec.rb b/test/integration/default/controls/config_spec.rb index 85457ab..283c059 100644 --- a/test/integration/default/controls/config_spec.rb +++ b/test/integration/default/controls/config_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Overide by Platform root_group = case platform[:family] diff --git a/test/integration/default/controls/packages_spec.rb b/test/integration/default/controls/packages_spec.rb index fb8efe9..d0058c2 100644 --- a/test/integration/default/controls/packages_spec.rb +++ b/test/integration/default/controls/packages_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Overide by Platform package_name = case platform[:family] diff --git a/test/integration/default/controls/services_spec.rb b/test/integration/default/controls/services_spec.rb index aa01abc..c165f4d 100644 --- a/test/integration/default/controls/services_spec.rb +++ b/test/integration/default/controls/services_spec.rb @@ -1,8 +1,8 @@ +# frozen_string_literal: true + # Overide by Platform service_name = 'sshd' -if platform[:family] == 'debian' - service_name = 'ssh' -end +service_name = 'ssh' if platform[:family] == 'debian' control 'openssh service' do impact 0.5