Skip to content

Commit

Permalink
Fix rubocop#12547 : rspec fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroto-Iizuka committed Jan 26, 2024
1 parent 650df2e commit 3f7880a
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 ' \
'Please update to the latest version of RuboCop. ' \
'If this error persists after updating to the latest version, please report it as a bug. ' \
'The latest version of Rubocop can be found 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 ' \
'Please update to the latest version of RuboCop. ' \
'If this error persists after updating to the latest version, please report it as a bug. ' \
'The latest version of Rubocop can be found 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 ' \
'Please update to the latest version of RuboCop. ' \
'If this error persists after updating to the latest version, please report it as a bug. ' \
'The latest version of Rubocop can be found 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 ' \
'Please update to the latest version of RuboCop. ' \
'If this error persists after updating to the latest version, please report it as a bug. ' \
'The latest version of Rubocop can be found at https://rubygems.org/gems/rubocop '
)
end
end
Expand Down

0 comments on commit 3f7880a

Please sign in to comment.