Replaced mock( with double(

This is to handle deprecation warnings with a new version of rspec.