fix rspec warnings: stub is deprecated

double replaces both stub and mock (objects)
Merge pull request #24 from markijbema/fix-rspec-deprecation-warnings

fix rspec warnings: stub is deprecated