lib/rubocop/cop/rspec/receive_counts.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/receive_counts.rb in rubocop-rspec-2.19.0
- old
+ new
@@ -78,10 +78,10 @@
end
end
def range(node, offending_node)
offending_node.loc.dot.with(
- end_pos: node.loc.expression.end_pos
+ end_pos: node.source_range.end_pos
)
end
end
end
end