Skip to content

Commit

Permalink
fix(inspec): fix Ruby lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Sep 23, 2019
1 parent a01adbf commit b945fa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/integration/dev_server/controls/vault_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
describe.one do
describe file('/etc/systemd/system/vault.service') do
it { should be_a_file }
its(:content) { should_not match /syslog/ }
its(:content) { should_not match(/syslog/) }
end

describe file('/etc/init/vault.conf') do
Expand All @@ -28,7 +28,7 @@
describe command('journalctl -u vault') do
its(:exit_status) { should eq 0 }
its(:stderr) { should be_empty }
its(:stdout) { should match /WARNING! dev mode is enabled!/ }
its(:stdout) { should match(/WARNING! dev mode is enabled!/) }
end

describe file('/var/log/vault.log') do
Expand Down
4 changes: 2 additions & 2 deletions test/integration/prod_server/controls/vault_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
describe.one do
describe file('/etc/systemd/system/vault.service') do
it { should be_a_file }
its(:content) { should_not match /syslog/ }
its(:content) { should_not match(/syslog/) }
end

describe file('/etc/init/vault.conf') do
Expand All @@ -42,7 +42,7 @@
describe command('journalctl -u vault') do
its(:exit_status) { should eq 0 }
its(:stderr) { should be_empty }
its(:stdout) { should match /Vault server started/ }
its(:stdout) { should match(/Vault server started/) }
end

describe file('/var/log/vault.log') do
Expand Down

0 comments on commit b945fa0

Please sign in to comment.