raise an error when attempting to use allow(...).to have_received

Fixes #787