Change deprecated RSpec mock to double.