Use pre 3.0 compatible stubbing

`receive_messages` is not available pre 3.0. This will let the
test suite run with an earlier version of rspec.