There's no bare receive() in rspec. It's always part of should_receive or should_not_receive. I tried to find an expect-based variant, and couldn't.