lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-1.10.0 vs lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-1.11.0
- old
+ new
@@ -32,11 +32,9 @@
# `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
- include RuboCop::Cop::ConfigurableEnforcedStyle
-
MSG = 'Prefer `be` over `eql`'.freeze
def_node_matcher :eql_type_with_identity, <<-PATTERN
(send _ :to $(send nil :eql {true false int float sym nil_type?}))
PATTERN