Skip to content

Commit efc9bd2

Browse files
Hiroto-Iizukabbatsov
authored andcommitted
Fix #12547 : fix rspec
1 parent de82525 commit efc9bd2

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

spec/rubocop/runner_spec.rb

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ class Klass
315315
end.to raise_error(
316316
described_class::InfiniteCorrectionLoop,
317317
"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"'
319322
)
320323
end
321324
end
@@ -335,7 +338,10 @@ class AnotherKlass
335338
end.to raise_error(
336339
described_class::InfiniteCorrectionLoop,
337340
"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"'
339345
)
340346
end
341347
end
@@ -372,7 +378,10 @@ class A_A
372378
described_class::InfiniteCorrectionLoop,
373379
"Infinite loop detected in #{source_file_path} and caused by " \
374380
'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"'
376385
)
377386
end
378387
end
@@ -406,7 +415,10 @@ class A
406415
end.to raise_error(
407416
described_class::InfiniteCorrectionLoop,
408417
"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"'
410422
)
411423
end
412424
end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy