lib/rubocop/cop/rspec/leading_subject.rb in rubocop-rspec-1.20.1 vs lib/rubocop/cop/rspec/leading_subject.rb in rubocop-rspec-1.21.0

- old
+ new

@@ -61,11 +61,15 @@ node.parent.children.find { |sibling| let?(sibling) } end def node_range(node) range = node.source_range - range = range_with_surrounding_space(range, :left, false) - range = range_with_surrounding_space(range, :right, true) + range = range_with_surrounding_space( + range: range, side: :left, newlines: false + ) + range = range_with_surrounding_space( + range: range, side: :right, newlines: true + ) range end def in_spec_block?(node) node.each_ancestor(:block).any? do |ancestor|