class RuboCop::Cop::RSpec::StubbedMock

Checks that message expectations do not have a configured response.

@example

# bad
expect(foo).to receive(:bar).with(42).and_return("hello world")

# good (without spies)
allow(foo).to receive(:bar).with(42).and_return("hello world")
expect(foo).to receive(:bar).with(42)