lib/rubocop/cop/capybara/specific_finders.rb in rubocop-capybara-2.19.0 vs lib/rubocop/cop/capybara/specific_finders.rb in rubocop-capybara-2.20.0
- old
+ new
@@ -74,10 +74,10 @@
corrector.remove(deletion_range(node)) unless sym.empty?
end
end
def deletion_range(node)
- range_between(node.arguments[0].source_range.end_pos,
+ range_between(node.first_argument.source_range.end_pos,
node.arguments[1].source_range.end_pos)
end
def autocorrect_classes(corrector, node, classes)
if (options = class_options(node).first)