Skip to content

Commit 62d20bc

Browse files
committed
fix(rubocop): fix remaining errors manually
1 parent 67de777 commit 62d20bc

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

test/integration/preferences/controls/preferences_spec.rb

+20-4
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,46 @@
2020
it { should be_owned_by 'root' }
2121
it { should be_grouped_into 'root' }
2222
its('mode') { should cmp '0644' }
23-
its(:content) { should match("Package: rspamd\nPin: origin rspamd.com\nPin-Priority: 650\n") }
23+
its(:content) do
24+
should match(
25+
"Package: rspamd\nPin: origin rspamd.com\nPin-Priority: 650\n"
26+
)
27+
end
2428
end
2529

2630
describe file('/etc/apt/preferences.d/01-all') do
2731
it { should exist }
2832
it { should be_owned_by 'root' }
2933
it { should be_grouped_into 'root' }
3034
its('mode') { should cmp '0644' }
31-
its(:content) { should match("Package: *\nPin: release stable\nPin-Priority: 610\n") }
35+
its(:content) do
36+
should match(
37+
"Package: *\nPin: release stable\nPin-Priority: 610\n"
38+
)
39+
end
3240
end
3341

3442
describe file('/etc/apt/preferences.d/02-all') do
3543
it { should exist }
3644
it { should be_owned_by 'root' }
3745
it { should be_grouped_into 'root' }
3846
its('mode') { should cmp '0644' }
39-
its(:content) { should match("Package: *\nPin: release testing\nPin-Priority: 600\n") }
47+
its(:content) do
48+
should match(
49+
"Package: *\nPin: release testing\nPin-Priority: 600\n"
50+
)
51+
end
4052
end
4153

4254
describe file('/etc/apt/preferences.d/03-all') do
4355
it { should exist }
4456
it { should be_owned_by 'root' }
4557
it { should be_grouped_into 'root' }
4658
its('mode') { should cmp '0644' }
47-
its(:content) { should match("Package: *\nPin: release unstable\nPin-Priority: 50\n") }
59+
its(:content) do
60+
should match(
61+
"Package: *\nPin: release unstable\nPin-Priority: 50\n"
62+
)
63+
end
4864
end
4965
end

test/integration/repositories/controls/repositories_spec.rb

+10-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,22 @@
3030
it { should be_owned_by 'root' }
3131
it { should be_grouped_into 'root' }
3232
its('mode') { should cmp '0644' }
33-
its(:content) { should match(%r{deb \[arch=amd64\] http://repository.spotify.com stable non-free}) }
33+
its(:content) do
34+
should match(
35+
%r{deb \[arch=amd64\] http://repository.spotify.com stable non-free}
36+
)
37+
end
3438
end
3539

3640
describe file('/etc/apt/sources.list.d/heroku-binary.list') do
3741
it { should exist }
3842
it { should be_owned_by 'root' }
3943
it { should be_grouped_into 'root' }
4044
its('mode') { should cmp '0644' }
41-
its(:content) { should match(%r{deb \[arch=amd64\] https://cli-assets.heroku.com/apt ./}) }
45+
its(:content) do
46+
should match(
47+
%r{deb \[arch=amd64\] https://cli-assets.heroku.com/apt ./}
48+
)
49+
end
4250
end
4351
end

0 commit comments

Comments
 (0)