RSpec 3.0 syntax

rspec-mock 3.0 has a new syntax for stubbing.  The old
syntax raises deprecation warning.  This change fixes it.
Merge pull request #564 from docwhat/rspec-warnings

RSpec 3.0 syntax