lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-2.2.0
- old
+ new
@@ -37,9 +37,10 @@
#
class BeEql < Base
extend AutoCorrector
MSG = 'Prefer `be` over `eql`.'
+ RESTRICT_ON_SEND = %i[to].freeze
def_node_matcher :eql_type_with_identity, <<-PATTERN
(send _ :to $(send nil? :eql {true false int float sym nil_type?}))
PATTERN