lib/rubocop/cop/capybara/specific_actions.rb in rubocop-capybara-2.17.1 vs lib/rubocop/cop/capybara/specific_actions.rb in rubocop-capybara-2.18.0

- old
+ new

@@ -73,10 +73,10 @@ def last_selector(arg) arg.split.last[/^\w+/, 0] end def offense_range(node, receiver) - receiver.loc.selector.with(end_pos: node.loc.expression.end_pos) + receiver.loc.selector.with(end_pos: node.source_range.end_pos) end def message(action, selector) format(MSG, good_action: good_action(action),