class RuboCop::Cop::RSpec::Be


expect(foo).to be(true)
expect(foo).to be 1.0
expect(foo).to be_truthy
# good
expect(foo).to be
# bad
@example
cases it’s better to specify what exactly is the expected value.
nil or false. If that is the exact intend, use ‘be_truthy`. In all other
The `be` matcher is too generic, as it pass on everything that is not
Check for expectations where `be` is used without argument.

def on_send(node)

def on_send(node)
  be_without_args(node) do |matcher|
    add_offense(matcher.loc.selector)
  end
end