Fix rspec deprecations (stub -> double).