fix(rubocop): add fixes using rubocop --safe-auto-correct

This commit is contained in:
Imran Iqbal
2019-10-11 20:21:28 +01:00
parent bc2cc2cadf
commit 62f82a4334
9 changed files with 41 additions and 25 deletions
@@ -1,3 +1,5 @@
# frozen_string_literal: true
version =
case platform[:family]
when 'redhat'
@@ -14,10 +16,10 @@ version =
control 'salt packages' do
title 'should be installed'
%w(
%w[
salt-master
salt-minion
).each do |p|
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
@@ -1,10 +1,12 @@
# frozen_string_literal: true
control 'salt services' do
title 'should be running'
%w(
%w[
salt-master
salt-minion
).each do |p|
].each do |p|
describe service(p) do
it { should be_enabled }
it { should be_running }
@@ -1,3 +1,5 @@
# frozen_string_literal: true
version =
case platform[:family]
when 'redhat'
@@ -9,10 +11,10 @@ version =
control 'salt packages' do
title 'should be installed'
%w(
%w[
salt-master
salt-minion
).each do |p|
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
@@ -1,10 +1,12 @@
# frozen_string_literal: true
control 'salt services' do
title 'should be running'
%w(
%w[
salt-master
salt-minion
).each do |p|
].each do |p|
describe service(p) do
it { should be_enabled }
it { should be_running }
@@ -1,3 +1,5 @@
# frozen_string_literal: true
version =
case platform[:family]
when 'redhat'
@@ -13,10 +15,10 @@ version =
control 'salt packages' do
title 'should be installed'
%w(
%w[
salt-master
salt-minion
).each do |p|
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
@@ -1,10 +1,12 @@
# frozen_string_literal: true
control 'salt services' do
title 'should be running'
%w(
%w[
salt-master
salt-minion
).each do |p|
].each do |p|
describe service(p) do
it { should be_enabled }
it { should be_running }
@@ -1,3 +1,5 @@
# frozen_string_literal: true
version =
case platform[:family]
when 'redhat'
@@ -18,10 +20,10 @@ version =
control 'salt packages' do
title 'should be installed'
%w(
%w[
salt-master
salt-minion
).each do |p|
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
@@ -1,10 +1,12 @@
# frozen_string_literal: true
control 'salt services' do
title 'should be running'
%w(
%w[
salt-master
salt-minion
).each do |p|
].each do |p|
describe service(p) do
it { should be_enabled }
it { should be_running }