RSpec 3.0 syntax

rspec-mock 3.0 has a new syntax for stubbing.  The old syntax raises
deprecation warning.  This change fixes it.

I did this while trying to troubleshoot issue #563