lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -33,10 +33,10 @@
# than `!equal?`. We also do not try to flag `eq` because if
# `a == b`, and `b` is comparable by identity, `a` is still not
# necessarily the same type as `b` since the `#==` operator can
# coerce objects for comparison.
#
- class BeEql < Cop
+ class BeEql < Base
extend AutoCorrector
MSG = 'Prefer `be` over `eql`.'
def_node_matcher :eql_type_with_identity, <<-PATTERN