@@ -315,7 +315,10 @@ class Klass
315
315
end . to raise_error (
316
316
described_class ::InfiniteCorrectionLoop ,
317
317
"Infinite loop detected in #{ source_file_path } and caused by " \
318
- 'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop'
318
+ 'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop ' \
319
+ '\n\nPlease update to the latest RuboCop version if not already in use, ' \
320
+ '\nand report a bug if the issue still occurs on this version. ' \
321
+ '\n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
319
322
)
320
323
end
321
324
end
@@ -335,7 +338,10 @@ class AnotherKlass
335
338
end . to raise_error (
336
339
described_class ::InfiniteCorrectionLoop ,
337
340
"Infinite loop detected in #{ source_file_path } and caused by " \
338
- 'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop'
341
+ 'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop ' \
342
+ '\n\nPlease update to the latest RuboCop version if not already in use, ' \
343
+ '\nand report a bug if the issue still occurs on this version. ' \
344
+ '\n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
339
345
)
340
346
end
341
347
end
@@ -372,7 +378,10 @@ class A_A
372
378
described_class ::InfiniteCorrectionLoop ,
373
379
"Infinite loop detected in #{ source_file_path } and caused by " \
374
380
'Test/ClassMustBeAModuleCop, Test/AtoB ' \
375
- '-> Test/ModuleMustBeAClassCop, Test/BtoA'
381
+ '-> Test/ModuleMustBeAClassCop, Test/BtoA ' \
382
+ '\n\nPlease update to the latest RuboCop version if not already in use, ' \
383
+ '\nand report a bug if the issue still occurs on this version. ' \
384
+ '\n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
376
385
)
377
386
end
378
387
end
@@ -406,7 +415,10 @@ class A
406
415
end . to raise_error (
407
416
described_class ::InfiniteCorrectionLoop ,
408
417
"Infinite loop detected in #{ source_file_path } and caused by " \
409
- 'Test/AtoB -> Test/BtoC -> Test/CtoA'
418
+ 'Test/AtoB -> Test/BtoC -> Test/CtoA ' \
419
+ '\n\nPlease update to the latest RuboCop version if not already in use, ' \
420
+ '\nand report a bug if the issue still occurs on this version. ' \
421
+ '\n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
410
422
)
411
423
end
412
424
end
0 commit comments