lib/rubocop/cop/rspec/receive_counts.rb in rubocop-rspec-1.26.0 vs lib/rubocop/cop/rspec/receive_counts.rb in rubocop-rspec-1.27.0
- old
+ new
@@ -74,10 +74,10 @@
end
end
def range(node, offending_node)
range_between(
- offending_node.loc.selector.begin_pos - 1, # match the dot as well
+ offending_node.loc.dot.begin_pos,
node.loc.expression.end_pos
)
end
end
end