lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-2.31.0 vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-3.0.0.pre

- old
+ new

@@ -172,10 +172,10 @@ heredoc_argument?(matcher) && !same_line?(node, matcher) end def heredoc_argument?(matcher) matcher.arguments.select do |arg| - %i[str dstr xstr].include?(arg.type) + arg.str_type? || arg.dstr_type? || arg.xstr_type? end.any?(&:heredoc?) end # @!method predicate_matcher?(node) def_node_matcher :predicate_matcher?, <<~PATTERN