Change deprecated stub() calls to double() calls in rspec