Fix rspec deprecation warning.

  "DEPRECATION: stub is deprecated. Use double instead."