lib/rubocop/cop/rspec/be_eq.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/be_eq.rb in rubocop-rspec-2.26.0
- old
+ new
@@ -28,10 +28,10 @@
MSG = 'Prefer `be` over `eq`.'
RESTRICT_ON_SEND = %i[eq].freeze
# @!method eq_type_with_identity?(node)
- def_node_matcher :eq_type_with_identity?, <<-PATTERN
+ def_node_matcher :eq_type_with_identity?, <<~PATTERN
(send nil? :eq {true false nil})
PATTERN
def on_send(node)
return unless eq_type_with_identity?(node)