lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-2.8.0 vs lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-2.9.0
- old
+ new
@@ -41,10 +41,10 @@
MSG = 'Prefer `be` over `eql`.'
RESTRICT_ON_SEND = %i[to].freeze
# @!method eql_type_with_identity(node)
def_node_matcher :eql_type_with_identity, <<-PATTERN
- (send _ :to $(send nil? :eql {true false int float sym nil_type?}))
+ (send _ :to $(send nil? :eql {true false int float sym nil}))
PATTERN
def on_send(node)
eql_type_with_identity(node) do |eql|
add_offense(eql.loc.selector) do |corrector|