Fix rspec test to use double rather than deprecated mock