Skip to content

Commit

Permalink
Fix rubocop#12547 : fix rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroto-Iizuka committed Jan 27, 2024
1 parent 7ad8f07 commit 60b24d1
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions spec/rubocop/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ class Klass
end.to raise_error(
RuboCop::Runner::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 @@ -333,7 +336,10 @@ class AnotherKlass
end.to raise_error(
RuboCop::Runner::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 @@ -370,7 +376,10 @@ class A_A
RuboCop::Runner::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 @@ -404,7 +413,10 @@ class A
end.to raise_error(
RuboCop::Runner::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 60b24d1

Please sign in to comment.