lib/rubocop/cop/rspec/receive_messages.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/receive_messages.rb in rubocop-rspec-2.26.0

- old
+ new

@@ -146,10 +146,10 @@ def item_range_by_whole_lines(item) range_by_whole_lines(item.source_range, include_final_newline: true) end def heredoc_or_splat?(node) - (node.str_type? || node.dstr_type?) && node.heredoc? || + ((node.str_type? || node.dstr_type?) && node.heredoc?) || node.splat_type? end def requires_quotes?(value) value.match?(/^:".*?"|=$|^\W+$/)