Stub -> double to eliminate rspec deprecation notices

This will eliminate deprecation notices thrown by rspec.