lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-1.29.1 vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-1.30.0

- old
+ new

@@ -143,10 +143,11 @@ ignore_node(node.children.first) return end return if part_of_ignored_node?(node) + predicate_matcher?(node) do |_actual, matcher| add_offense( node, location: :expression, message: message_explicit(matcher) @@ -335,9 +336,10 @@ # foo { bar } # ^^^^^^^^ def block_loc(send_node) parent = send_node.parent return unless parent.block_type? + range_between( send_node.loc.expression.end_pos, parent.loc.expression.end_pos ) end