Add RSpec 3 Test Double support.

I made this change so that the RSpec Test Double support would be compatible
with RSpec 3 as well. This is necessary because they changed the public facing
API in RSpec 3. I didn't see any automated test coverage around this area of the
code. I did manually test it though and it seems to be working correctly.