|
70 | 70 | it { should_not be_readable.by 'other' } |
71 | 71 | it { should_not be_writable.by 'other' } |
72 | 72 | it { should_not be_executable.by 'other' } |
73 | | - its('uid') { should cmp 0 } |
74 | | - its('gid') { should cmp 0 } |
| 73 | + it { should be_owned_by 'root' } |
| 74 | + it { should be_grouped_into 'root' } |
75 | 75 | end |
76 | 76 | end |
77 | 77 |
|
|
102 | 102 | it { should_not be_readable.by 'other' } |
103 | 103 | it { should_not be_writable.by 'other' } |
104 | 104 | it { should_not be_executable.by 'other' } |
105 | | - its('uid') { should cmp 0 } |
106 | | - its('gid') { should cmp 0 } |
| 105 | + it { should be_owned_by 'root' } |
| 106 | + it { should be_grouped_into 'root' } |
107 | 107 | end |
108 | 108 | end |
109 | 109 |
|
|
134 | 134 | it { should_not be_readable.by 'other' } |
135 | 135 | it { should_not be_writable.by 'other' } |
136 | 136 | it { should_not be_executable.by 'other' } |
137 | | - its('uid') { should cmp 0 } |
138 | | - its('gid') { should cmp 0 } |
| 137 | + it { should be_owned_by 'root' } |
| 138 | + it { should be_grouped_into 'root' } |
139 | 139 | end |
140 | 140 | end |
141 | 141 |
|
|
166 | 166 | it { should_not be_readable.by 'other' } |
167 | 167 | it { should_not be_writable.by 'other' } |
168 | 168 | it { should_not be_executable.by 'other' } |
169 | | - its('uid') { should cmp 0 } |
170 | | - its('gid') { should cmp 0 } |
| 169 | + it { should be_owned_by 'root' } |
| 170 | + it { should be_grouped_into 'root' } |
171 | 171 | end |
172 | 172 | end |
173 | 173 |
|
|
198 | 198 | it { should_not be_readable.by 'other' } |
199 | 199 | it { should_not be_writable.by 'other' } |
200 | 200 | it { should_not be_executable.by 'other' } |
201 | | - its('uid') { should cmp 0 } |
202 | | - its('gid') { should cmp 0 } |
| 201 | + it { should be_owned_by 'root' } |
| 202 | + it { should be_grouped_into 'root' } |
203 | 203 | end |
204 | 204 | end |
205 | 205 |
|
|
231 | 231 | it { should_not be_readable.by 'other' } |
232 | 232 | it { should_not be_writable.by 'other' } |
233 | 233 | it { should_not be_executable.by 'other' } |
234 | | - its('uid') { should cmp 0 } |
235 | | - its('gid') { should cmp 0 } |
| 234 | + it { should be_owned_by 'root' } |
| 235 | + it { should be_grouped_into 'root' } |
236 | 236 | end |
237 | 237 | end |
238 | 238 |
|
|
272 | 272 | it { should_not be_readable.by 'other' } |
273 | 273 | it { should_not be_writable.by 'other' } |
274 | 274 | it { should_not be_executable.by 'other' } |
275 | | - its('uid') { should cmp 0 } |
276 | | - its('gid') { should cmp 0 } |
| 275 | + it { should be_owned_by 'root' } |
| 276 | + it { should be_grouped_into 'root' } |
277 | 277 | end |
278 | 278 | end |
279 | 279 | end |
0 commit comments