lib/rubocop/cop/rspec/empty_hook.rb in rubocop-rspec-2.11.1 vs lib/rubocop/cop/rspec/empty_hook.rb in rubocop-rspec-2.12.0

- old
+ new

@@ -34,14 +34,12 @@ PATTERN def on_block(node) empty_hook?(node) do |hook| add_offense(hook) do |corrector| - range = range_with_surrounding_space( - range: node.loc.expression, - side: :left + corrector.remove( + range_with_surrounding_space(node.loc.expression, side: :left) ) - corrector.remove(range) end end end end end