spec/rubocop/cop/style/infinite_loop_spec.rb in rubocop-0.28.0 vs spec/rubocop/cop/style/infinite_loop_spec.rb in rubocop-0.29.0
- old
+ new
@@ -27,10 +27,10 @@
end
end
it 'accepts Kernel#loop' do
inspect_source(cop,
- ['loop { break if something }'])
+ 'loop { break if something }')
expect(cop.offenses).to be_empty
end
it 'auto-corrects the usage of "while/until" with do' do