File tree 2 files changed +30
-6
lines changed
2 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 20
20
it { should be_owned_by 'root' }
21
21
it { should be_grouped_into 'root' }
22
22
its ( 'mode' ) { should cmp '0644' }
23
- its ( :content ) { should match ( "Package: rspamd\n Pin: origin rspamd.com\n Pin-Priority: 650\n " ) }
23
+ its ( :content ) do
24
+ should match (
25
+ "Package: rspamd\n Pin: origin rspamd.com\n Pin-Priority: 650\n "
26
+ )
27
+ end
24
28
end
25
29
26
30
describe file ( '/etc/apt/preferences.d/01-all' ) do
27
31
it { should exist }
28
32
it { should be_owned_by 'root' }
29
33
it { should be_grouped_into 'root' }
30
34
its ( 'mode' ) { should cmp '0644' }
31
- its ( :content ) { should match ( "Package: *\n Pin: release stable\n Pin-Priority: 610\n " ) }
35
+ its ( :content ) do
36
+ should match (
37
+ "Package: *\n Pin: release stable\n Pin-Priority: 610\n "
38
+ )
39
+ end
32
40
end
33
41
34
42
describe file ( '/etc/apt/preferences.d/02-all' ) do
35
43
it { should exist }
36
44
it { should be_owned_by 'root' }
37
45
it { should be_grouped_into 'root' }
38
46
its ( 'mode' ) { should cmp '0644' }
39
- its ( :content ) { should match ( "Package: *\n Pin: release testing\n Pin-Priority: 600\n " ) }
47
+ its ( :content ) do
48
+ should match (
49
+ "Package: *\n Pin: release testing\n Pin-Priority: 600\n "
50
+ )
51
+ end
40
52
end
41
53
42
54
describe file ( '/etc/apt/preferences.d/03-all' ) do
43
55
it { should exist }
44
56
it { should be_owned_by 'root' }
45
57
it { should be_grouped_into 'root' }
46
58
its ( 'mode' ) { should cmp '0644' }
47
- its ( :content ) { should match ( "Package: *\n Pin: release unstable\n Pin-Priority: 50\n " ) }
59
+ its ( :content ) do
60
+ should match (
61
+ "Package: *\n Pin: release unstable\n Pin-Priority: 50\n "
62
+ )
63
+ end
48
64
end
49
65
end
Original file line number Diff line number Diff line change 30
30
it { should be_owned_by 'root' }
31
31
it { should be_grouped_into 'root' }
32
32
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
34
38
end
35
39
36
40
describe file ( '/etc/apt/sources.list.d/heroku-binary.list' ) do
37
41
it { should exist }
38
42
it { should be_owned_by 'root' }
39
43
it { should be_grouped_into 'root' }
40
44
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
42
50
end
43
51
end
You can’t perform that action at this time.
0 commit comments