|
29 | 29 | context "fact variable using legacy $facts['osfamily']" do |
30 | 30 | let(:code) { "$facts['osfamily']" } |
31 | 31 |
|
32 | | - it 'onlies detect a single problem' do |
| 32 | + it 'only detect a single problem' do |
33 | 33 | expect(problems.size).to eq(1) |
34 | 34 | end |
35 | 35 | end |
36 | 36 |
|
37 | 37 | context 'fact variable using legacy $::osfamily' do |
38 | 38 | let(:code) { '$::osfamily' } |
39 | 39 |
|
40 | | - it 'onlies detect a single problem' do |
| 40 | + it 'only detect a single problem' do |
41 | 41 | expect(problems.size).to eq(1) |
42 | 42 | end |
43 | 43 | end |
44 | 44 |
|
45 | 45 | context 'fact variable using legacy $::blockdevice_sda_model' do |
46 | 46 | let(:code) { '$::blockdevice_sda_model' } |
47 | 47 |
|
48 | | - it 'onlies detect a single problem' do |
| 48 | + it 'only detect a single problem' do |
49 | 49 | expect(problems.size).to eq(1) |
50 | 50 | end |
51 | 51 | end |
52 | 52 |
|
53 | 53 | context "fact variable using legacy $facts['ipaddress6_em2']" do |
54 | 54 | let(:code) { "$facts['ipaddress6_em2']" } |
55 | 55 |
|
56 | | - it 'onlies detect a single problem' do |
| 56 | + it 'only detect a single problem' do |
57 | 57 | expect(problems.size).to eq(1) |
58 | 58 | end |
59 | 59 | end |
60 | 60 |
|
61 | 61 | context 'fact variable using legacy $::zone_foobar_uuid' do |
62 | 62 | let(:code) { '$::zone_foobar_uuid' } |
63 | 63 |
|
64 | | - it 'onlies detect a single problem' do |
| 64 | + it 'only detect a single problem' do |
65 | 65 | expect(problems.size).to eq(1) |
66 | 66 | end |
67 | 67 | end |
68 | 68 |
|
69 | 69 | context 'fact variable using legacy $::processor314' do |
70 | 70 | let(:code) { '$::processor314' } |
71 | 71 |
|
72 | | - it 'onlies detect a single problem' do |
| 72 | + it 'only detect a single problem' do |
73 | 73 | expect(problems.size).to eq(1) |
74 | 74 | end |
75 | 75 | end |
76 | 76 |
|
77 | 77 | context 'fact variable using legacy $::sp_l3_cache' do |
78 | 78 | let(:code) { '$::sp_l3_cache' } |
79 | 79 |
|
80 | | - it 'onlies detect a single problem' do |
| 80 | + it 'only detect a single problem' do |
81 | 81 | expect(problems.size).to eq(1) |
82 | 82 | end |
83 | 83 | end |
84 | 84 |
|
85 | 85 | context 'fact variable using legacy $::sshrsakey' do |
86 | 86 | let(:code) { '$::sshrsakey' } |
87 | 87 |
|
88 | | - it 'onlies detect a single problem' do |
| 88 | + it 'only detect a single problem' do |
89 | 89 | expect(problems.size).to eq(1) |
90 | 90 | end |
91 | 91 | end |
92 | 92 |
|
93 | 93 | context 'fact variable in interpolated string "${::osfamily}"' do |
94 | 94 | let(:code) { '"start ${::osfamily} end"' } |
95 | 95 |
|
96 | | - it 'onlies detect a single problem' do |
| 96 | + it 'only detect a single problem' do |
97 | 97 | expect(problems.size).to eq(1) |
98 | 98 | end |
99 | 99 | end |
100 | 100 |
|
101 | 101 | context 'fact variable using legacy variable in double quotes "$::osfamily"' do |
102 | 102 | let(:code) { '"$::osfamily"' } |
103 | 103 |
|
104 | | - it 'onlies detect a single problem' do |
| 104 | + it 'only detect a single problem' do |
105 | 105 | expect(problems.size).to eq(1) |
106 | 106 | end |
107 | 107 | end |
|
168 | 168 | let(:code) { "$facts['osfamily']" } |
169 | 169 | let(:msg) { "legacy fact 'osfamily'" } |
170 | 170 |
|
171 | | - it 'onlies detect a single problem' do |
| 171 | + it 'only detect a single problem' do |
172 | 172 | expect(problems.size).to eq(1) |
173 | 173 | end |
174 | 174 |
|
|
210 | 210 | let(:code) { '$::osfamily' } |
211 | 211 | let(:msg) { "legacy fact 'osfamily'" } |
212 | 212 |
|
213 | | - it 'onlies detect a single problem' do |
| 213 | + it 'only detect a single problem' do |
214 | 214 | expect(problems.size).to eq(1) |
215 | 215 | end |
216 | 216 |
|
|
227 | 227 | let(:code) { '$::sshrsakey' } |
228 | 228 | let(:msg) { "legacy fact 'sshrsakey'" } |
229 | 229 |
|
230 | | - it 'onlies detect a single problem' do |
| 230 | + it 'only detect a single problem' do |
231 | 231 | expect(problems.size).to eq(1) |
232 | 232 | end |
233 | 233 |
|
|
243 | 243 | context 'fact variable using legacy $::memoryfree_mb' do |
244 | 244 | let(:code) { '$::memoryfree_mb' } |
245 | 245 |
|
246 | | - it 'onlies detect a single problem' do |
| 246 | + it 'only detect a single problem' do |
247 | 247 | expect(problems.size).to eq(1) |
248 | 248 | end |
249 | 249 |
|
|
255 | 255 | context 'fact variable using legacy $::blockdevice_sda_model' do |
256 | 256 | let(:code) { '$::blockdevice_sda_model' } |
257 | 257 |
|
258 | | - it 'onlies detect a single problem' do |
| 258 | + it 'only detect a single problem' do |
259 | 259 | expect(problems.size).to eq(1) |
260 | 260 | end |
261 | 261 |
|
|
267 | 267 | context "fact variable using legacy $facts['ipaddress6_em2']" do |
268 | 268 | let(:code) { "$facts['ipaddress6_em2']" } |
269 | 269 |
|
270 | | - it 'onlies detect a single problem' do |
| 270 | + it 'only detect a single problem' do |
271 | 271 | expect(problems.size).to eq(1) |
272 | 272 | end |
273 | 273 |
|
|
279 | 279 | context 'fact variable using legacy $::zone_foobar_uuid' do |
280 | 280 | let(:code) { '$::zone_foobar_uuid' } |
281 | 281 |
|
282 | | - it 'onlies detect a single problem' do |
| 282 | + it 'only detect a single problem' do |
283 | 283 | expect(problems.size).to eq(1) |
284 | 284 | end |
285 | 285 |
|
|
291 | 291 | context 'fact variable using legacy $::processor314' do |
292 | 292 | let(:code) { '$::processor314' } |
293 | 293 |
|
294 | | - it 'onlies detect a single problem' do |
| 294 | + it 'only detect a single problem' do |
295 | 295 | expect(problems.size).to eq(1) |
296 | 296 | end |
297 | 297 |
|
|
303 | 303 | context 'fact variable using legacy $::sp_l3_cache' do |
304 | 304 | let(:code) { '$::sp_l3_cache' } |
305 | 305 |
|
306 | | - it 'onlies detect a single problem' do |
| 306 | + it 'only detect a single problem' do |
307 | 307 | expect(problems.size).to eq(1) |
308 | 308 | end |
309 | 309 |
|
|
315 | 315 | context 'fact variable using legacy $::sshrsakey' do |
316 | 316 | let(:code) { '$::sshrsakey' } |
317 | 317 |
|
318 | | - it 'onlies detect a single problem' do |
| 318 | + it 'only detect a single problem' do |
319 | 319 | expect(problems.size).to eq(1) |
320 | 320 | end |
321 | 321 |
|
|
327 | 327 | context 'fact variable in interpolated string "${::osfamily}"' do |
328 | 328 | let(:code) { '"start ${::osfamily} end"' } |
329 | 329 |
|
330 | | - it 'onlies detect a single problem' do |
| 330 | + it 'only detect a single problem' do |
331 | 331 | expect(problems.size).to eq(1) |
332 | 332 | end |
333 | 333 |
|
|
339 | 339 | context 'fact variable using legacy variable in double quotes "$::osfamily"' do |
340 | 340 | let(:code) { '"$::osfamily"' } |
341 | 341 |
|
342 | | - it 'onlies detect a single problem' do |
| 342 | + it 'only detect a single problem' do |
343 | 343 | expect(problems.size).to eq(1) |
344 | 344 | end |
345 | 345 |
|
|
351 | 351 | context 'fact variable using legacy variable in double quotes "$::gid"' do |
352 | 352 | let(:code) { '"$::gid"' } |
353 | 353 |
|
354 | | - it 'onlies detect a single problem' do |
| 354 | + it 'only detect a single problem' do |
355 | 355 | expect(problems.size).to eq(1) |
356 | 356 | end |
357 | 357 |
|
|
363 | 363 | context 'fact variable using legacy variable in double quotes "$::id"' do |
364 | 364 | let(:code) { '"$::id"' } |
365 | 365 |
|
366 | | - it 'onlies detect a single problem' do |
| 366 | + it 'only detect a single problem' do |
367 | 367 | expect(problems.size).to eq(1) |
368 | 368 | end |
369 | 369 |
|
|
375 | 375 | context 'fact variable using legacy variable in double quotes "$::lsbdistcodename"' do |
376 | 376 | let(:code) { '"$::lsbdistcodename"' } |
377 | 377 |
|
378 | | - it 'onlies detect a single problem' do |
| 378 | + it 'only detect a single problem' do |
379 | 379 | expect(problems.size).to eq(1) |
380 | 380 | end |
381 | 381 |
|
|
387 | 387 | context 'fact variable using legacy variable in double quotes "$::lsbdistdescription"' do |
388 | 388 | let(:code) { '"$::lsbdistdescription"' } |
389 | 389 |
|
390 | | - it 'onlies detect a single problem' do |
| 390 | + it 'only detect a single problem' do |
391 | 391 | expect(problems.size).to eq(1) |
392 | 392 | end |
393 | 393 |
|
|
399 | 399 | context 'fact variable using legacy variable in double quotes "$::lsbdistid"' do |
400 | 400 | let(:code) { '"$::lsbdistid"' } |
401 | 401 |
|
402 | | - it 'onlies detect a single problem' do |
| 402 | + it 'only detect a single problem' do |
403 | 403 | expect(problems.size).to eq(1) |
404 | 404 | end |
405 | 405 |
|
|
411 | 411 | context 'fact variable using legacy variable in double quotes "$::lsbdistrelease"' do |
412 | 412 | let(:code) { '"$::lsbdistrelease"' } |
413 | 413 |
|
414 | | - it 'onlies detect a single problem' do |
| 414 | + it 'only detect a single problem' do |
415 | 415 | expect(problems.size).to eq(1) |
416 | 416 | end |
417 | 417 |
|
|
423 | 423 | context 'fact variable using legacy variable in double quotes "$::lsbmajdistrelease"' do |
424 | 424 | let(:code) { '"$::lsbmajdistrelease"' } |
425 | 425 |
|
426 | | - it 'onlies detect a single problem' do |
| 426 | + it 'only detect a single problem' do |
427 | 427 | expect(problems.size).to eq(1) |
428 | 428 | end |
429 | 429 |
|
|
435 | 435 | context 'fact variable using legacy variable in double quotes "$::lsbminordistrelease"' do |
436 | 436 | let(:code) { '"$::lsbminordistrelease"' } |
437 | 437 |
|
438 | | - it 'onlies detect a single problem' do |
| 438 | + it 'only detect a single problem' do |
439 | 439 | expect(problems.size).to eq(1) |
440 | 440 | end |
441 | 441 |
|
|
447 | 447 | context 'fact variable using legacy variable in double quotes "$::lsbrelease"' do |
448 | 448 | let(:code) { '"$::lsbrelease"' } |
449 | 449 |
|
450 | | - it 'onlies detect a single problem' do |
| 450 | + it 'only detect a single problem' do |
451 | 451 | expect(problems.size).to eq(1) |
452 | 452 | end |
453 | 453 |
|
|
459 | 459 | context "fact variable using facts hash in double quotes \"$facts['lsbrelease']\"" do |
460 | 460 | let(:code) { "\"${facts['lsbrelease']}\"" } |
461 | 461 |
|
462 | | - it 'onlies detect a single problem' do |
| 462 | + it 'only detect a single problem' do |
463 | 463 | expect(problems.size).to eq(1) |
464 | 464 | end |
465 | 465 |
|
|
0 commit comments