Fix deprecation warnings when running specs

"DEPRECATION: mock is deprecated. Use double instead."
Merge pull request #9 from adammck/fix_spec_deprecation_warnings

Fix deprecation warnings when running specs