Skip to content

Commit

Permalink
No need to call autocorrect_source_with_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning authored and bbatsov committed Jun 1, 2020
1 parent 2ccaf3e commit 09ff7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rubocop/cop/gemspec/ordered_dependencies_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end

it 'autocorrects' do
new_source = autocorrect_source_with_loop(source)
new_source = autocorrect_source(source)
expect(new_source).to eq(<<~RUBY)
Gem::Specification.new do |spec|
spec.#{add_dependency} 'rspec'
Expand Down Expand Up @@ -95,7 +95,7 @@
end

it 'autocorrects' do
new_source = autocorrect_source_with_loop(source)
new_source = autocorrect_source(source)
expect(new_source).to eq(<<~RUBY)
Gem::Specification.new do |spec|
# For
Expand Down

0 comments on commit 09ff7ea

Please sign in to comment.