fix rspec deprecation warnings (stub -> double)