Skip to content

Commit

Permalink
fix(rubocop): fix remaining errors manually
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 8, 2019
1 parent 67de777 commit 62d20bc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
24 changes: 20 additions & 4 deletions test/integration/preferences/controls/preferences_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,46 @@
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
it { should exist }
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
it { should exist }
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
it { should exist }
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
12 changes: 10 additions & 2 deletions test/integration/repositories/controls/repositories_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,22 @@
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
it { should exist }
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

0 comments on commit 62d20bc

Please sign in to comment.