lib/rubocop/rspec/blank_line_separation.rb in rubocop-rspec-1.27.0 vs lib/rubocop/rspec/blank_line_separation.rb in rubocop-rspec-1.28.0

- old
+ new

@@ -23,9 +23,15 @@ start = offending_line.length - content_length source_range(processed_source.buffer, last_line, start, content_length) end + def last_child?(node) + return true unless node.parent && node.parent.begin_type? + + node.equal?(node.parent.children.last) + end + def autocorrect(node) lambda do |corrector| missing_separating_line(node) do |location| corrector.insert_after(location.end, "\n") end