class RuboCop::Cop::RSpec::IdenticalEqualityAssertion
expect(foo.bar).to eql(2)
expect(foo.bar).to eq(2)
# good
expect(foo.bar).to eql(foo.bar)
expect(foo.bar).to eq(foo.bar)
# bad
@example
Checks for equality assertions with identical expressions on both sides.
def on_send(node)
def on_send(node) equality_check?(node) do |left, right| add_offense(node) if left == right end end