lib/rubocop/cop/rspec/duplicated_metadata.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/duplicated_metadata.rb in rubocop-rspec-2.19.0
- old
+ new
@@ -37,10 +37,10 @@
def autocorrect(corrector, node)
corrector.remove(
range_with_surrounding_comma(
range_with_surrounding_space(
- node.location.expression,
+ node.source_range,
side: :left
),
:left
)
)