Ver código fonte

fix(rubocop): fix remaining errors manually

tags/v0.9.1
Imran Iqbal 5 anos atrás
pai
commit
62d20bc9e1
Nenhuma conta vinculada ao e-mail do autor do commit
2 arquivos alterados com 30 adições e 6 exclusões
  1. +20
    -4
      test/integration/preferences/controls/preferences_spec.rb
  2. +10
    -2
      test/integration/repositories/controls/repositories_spec.rb

+ 20
- 4
test/integration/preferences/controls/preferences_spec.rb Ver arquivo

@@ -20,7 +20,11 @@ control 'Apt preferences' do
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
its(:content) { should match("Package: rspamd\nPin: origin rspamd.com\nPin-Priority: 650\n") }
its(:content) do
should match(
"Package: rspamd\nPin: origin rspamd.com\nPin-Priority: 650\n"
)
end
end

describe file('/etc/apt/preferences.d/01-all') do
@@ -28,7 +32,11 @@ control 'Apt preferences' do
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
its(:content) { should match("Package: *\nPin: release stable\nPin-Priority: 610\n") }
its(:content) do
should match(
"Package: *\nPin: release stable\nPin-Priority: 610\n"
)
end
end

describe file('/etc/apt/preferences.d/02-all') do
@@ -36,7 +44,11 @@ control 'Apt preferences' do
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
its(:content) { should match("Package: *\nPin: release testing\nPin-Priority: 600\n") }
its(:content) do
should match(
"Package: *\nPin: release testing\nPin-Priority: 600\n"
)
end
end

describe file('/etc/apt/preferences.d/03-all') do
@@ -44,6 +56,10 @@ control 'Apt preferences' do
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
its(:content) { should match("Package: *\nPin: release unstable\nPin-Priority: 50\n") }
its(:content) do
should match(
"Package: *\nPin: release unstable\nPin-Priority: 50\n"
)
end
end
end

+ 10
- 2
test/integration/repositories/controls/repositories_spec.rb Ver arquivo

@@ -30,7 +30,11 @@ control 'Apt repositories' do
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
its(:content) { should match(%r{deb \[arch=amd64\] http://repository.spotify.com stable non-free}) }
its(:content) do
should match(
%r{deb \[arch=amd64\] http://repository.spotify.com stable non-free}
)
end
end

describe file('/etc/apt/sources.list.d/heroku-binary.list') do
@@ -38,6 +42,10 @@ control 'Apt repositories' do
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
its(:content) { should match(%r{deb \[arch=amd64\] https://cli-assets.heroku.com/apt ./}) }
its(:content) do
should match(
%r{deb \[arch=amd64\] https://cli-assets.heroku.com/apt ./}
)
end
end
end

Carregando…
Cancelar
Salvar