Skip to content

Commit

Permalink
Fix #12547 : fix rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroto-Iizuka authored and bbatsov committed Apr 8, 2024
1 parent de82525 commit efc9bd2
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions spec/rubocop/runner_spec.rb
Expand Up @@ -315,7 +315,10 @@ class Klass
end.to raise_error(
described_class::InfiniteCorrectionLoop,
"Infinite loop detected in #{source_file_path} and caused by " \
'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop'
'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop ' \
'\n\nPlease update to the latest RuboCop version if not already in use, ' \
'\nand report a bug if the issue still occurs on this version. ' \
'\n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
)
end
end
Expand All @@ -335,7 +338,10 @@ class AnotherKlass
end.to raise_error(
described_class::InfiniteCorrectionLoop,
"Infinite loop detected in #{source_file_path} and caused by " \
'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop'
'Test/ClassMustBeAModuleCop -> Test/ModuleMustBeAClassCop ' \
'\n\nPlease update to the latest RuboCop version if not already in use, ' \
'\nand report a bug if the issue still occurs on this version. ' \
'\n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
)
end
end
Expand Down Expand Up @@ -372,7 +378,10 @@ class A_A
described_class::InfiniteCorrectionLoop,
"Infinite loop detected in #{source_file_path} and caused by " \
'Test/ClassMustBeAModuleCop, Test/AtoB ' \
'-> Test/ModuleMustBeAClassCop, Test/BtoA'
'-> Test/ModuleMustBeAClassCop, Test/BtoA ' \
'\n\nPlease update to the latest RuboCop version if not already in use, ' \
'\nand report a bug if the issue still occurs on this version. ' \
'\n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
)
end
end
Expand Down Expand Up @@ -406,7 +415,10 @@ class A
end.to raise_error(
described_class::InfiniteCorrectionLoop,
"Infinite loop detected in #{source_file_path} and caused by " \
'Test/AtoB -> Test/BtoC -> Test/CtoA'
'Test/AtoB -> Test/BtoC -> Test/CtoA ' \
'\n\nPlease update to the latest RuboCop version if not already in use, ' \
'\nand report a bug if the issue still occurs on this version. ' \
'\n\nPlease check the latest version at "https://rubygems.org/gems/rubocop"'
)
end
end
Expand Down

0 comments on commit efc9bd2

Please sign in to comment.