Browse Source

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

tags/v0.7.2
Imran Iqbal 5 years ago
parent
commit
e8c455f380
No account linked to committer's email address
3 changed files with 8 additions and 2 deletions
  1. +4
    -2
      test/integration/default/controls/config_spec.rb
  2. +2
    -0
      test/integration/default/controls/package_spec.rb
  3. +2
    -0
      test/integration/default/controls/service_spec.rb

+ 4
- 2
test/integration/default/controls/config_spec.rb View File

# frozen_string_literal: true

control 'AptCacherNG configuration' do control 'AptCacherNG configuration' do
title 'should match desired lines' title 'should match desired lines'


describe file('/etc/apt-cacher-ng/zzz_acng.conf') do describe file('/etc/apt-cacher-ng/zzz_acng.conf') do
# Default config # Default config
its('content') { should include "BindAddress: 0.0.0.0" }
its('content') { should include 'BindAddress: 0.0.0.0' }


# Custom config # Custom config
its('content') { should include "Port: 9999" }
its('content') { should include 'Port: 9999' }
end end


describe file('/etc/apt/apt.conf.d/80proxy') do describe file('/etc/apt/apt.conf.d/80proxy') do

+ 2
- 0
test/integration/default/controls/package_spec.rb View File

# frozen_string_literal: true

control 'AptCacherNG package' do control 'AptCacherNG package' do
title 'should be installed' title 'should be installed'



+ 2
- 0
test/integration/default/controls/service_spec.rb View File

# frozen_string_literal: true

control 'AptCacherNG service' do control 'AptCacherNG service' do
title 'should be running and enabled' title 'should be running and enabled'



Loading…
Cancel
Save